Skip to content

Commit 6223de9

Browse files
FaraSysgglin001Fara
authored
enable PinWidget scrolling on macos with mouse (#4)
Co-authored-by: Allen Guo <[email protected]> Co-authored-by: Fara <[email protected]>
1 parent c8b9fbc commit 6223de9

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)