mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +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,
|
||||
});
|
||||
}
|
||||
return base::EventFilterResult::Cancel;
|
||||
return (touchscreen && state->orientation != Qt::Horizontal)
|
||||
? base::EventFilterResult::Continue
|
||||
: base::EventFilterResult::Cancel;
|
||||
} break;
|
||||
case QEvent::Wheel: {
|
||||
const auto w = static_cast<QWheelEvent*>(e.get());
|
||||
|
|
Loading…
Add table
Reference in a new issue