Skip to content

Commit b35f977

Browse files
authored
enable PinWidget scrolling on macos with mouse (flameshot-org#3860)
1 parent 5b7d41c commit b35f977

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/pin/pinwidget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ bool PinWidget::scrollEvent(QWheelEvent* event)
106106
{
107107
const auto phase = event->phase();
108108
if (phase == Qt::ScrollPhase::ScrollUpdate
109-
#if defined(Q_OS_LINUX) || defined(Q_OS_WINDOWS)
110-
// Linux is getting only NoScrollPhase events.
109+
#if defined(Q_OS_LINUX) || defined(Q_OS_WINDOWS) || defined(Q_OS_MACOS)
111110
|| phase == Qt::ScrollPhase::NoScrollPhase
112111
#endif
113112
) {

0 commit comments

Comments
 (0)