mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 17:59:25 +00:00
Fix pin widget scrolling on windows
This commit is contained in:
@@ -99,9 +99,9 @@ bool PinWidget::scrollEvent(QWheelEvent* event)
|
||||
{
|
||||
const auto phase = event->phase();
|
||||
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.
|
||||
or phase == Qt::ScrollPhase::NoScrollPhase
|
||||
|| phase == Qt::ScrollPhase::NoScrollPhase
|
||||
#endif
|
||||
) {
|
||||
const auto angle = event->angleDelta();
|
||||
|
||||
Reference in New Issue
Block a user