Fix pin widget scrolling on windows

This commit is contained in:
Jeremy Borgman
2022-06-28 20:00:41 -05:00
parent 13c034c1e4
commit 1f3ca56b97

View File

@@ -99,9 +99,9 @@ bool PinWidget::scrollEvent(QWheelEvent* event)
{ {
const auto phase = event->phase(); const auto phase = event->phase();
if (phase == Qt::ScrollPhase::ScrollUpdate if (phase == Qt::ScrollPhase::ScrollUpdate
#if defined(Q_OS_LINUX) #if defined(Q_OS_LINUX) || defined(Q_OS_WINDOWS)
// Linux is getting only NoScrollPhase events. // Linux is getting only NoScrollPhase events.
or phase == Qt::ScrollPhase::NoScrollPhase || phase == Qt::ScrollPhase::NoScrollPhase
#endif #endif
) { ) {
const auto angle = event->angleDelta(); const auto angle = event->angleDelta();