Skip to content

Commit

Permalink
Fixed dragging of scrollbar in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
sgourdas committed Mar 28, 2024
1 parent 693b7b1 commit cfecc9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ bool MainWindow::eventFilter(QObject* /*object*/, QEvent* event)
if (event->type() == QEvent::MouseMove && isFullScreen())
{
const auto mouseEvent = static_cast<QMouseEvent*>(event);

if (mouseEvent->buttons() != Qt::NoButton) // Check that no buttons are pressed at the same time -- This can indicate moving the scrollbar or any other item
return false;

const int tabRegion = getTabBar()->height() + getTopWidget()->height() + 30;
int clickY = portutils::getY(*mouseEvent);

Expand Down

0 comments on commit cfecc9c

Please sign in to comment.