mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix touchscreen history scrolling.
This commit is contained in:
parent
20a5e0ba73
commit
8d0f66d562
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,9 @@ void SetupSwipeHandler(
|
||||||
.touch = true,
|
.touch = true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return base::EventFilterResult::Cancel;
|
return (touchscreen && state->orientation != Qt::Horizontal)
|
||||||
|
? base::EventFilterResult::Continue
|
||||||
|
: base::EventFilterResult::Cancel;
|
||||||
} break;
|
} break;
|
||||||
case QEvent::Wheel: {
|
case QEvent::Wheel: {
|
||||||
const auto w = static_cast<QWheelEvent*>(e.get());
|
const auto w = static_cast<QWheelEvent*>(e.get());
|
||||||
|
|
Loading…
Add table
Reference in a new issue