Fix touchscreen history scrolling.

This commit is contained in:
John Preston 2024-09-04 14:06:11 +02:00
parent 20a5e0ba73
commit 8d0f66d562

View file

@ -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());