mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +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();
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user