Switch TouchInputFlags to enum class, fix some minor UI issues

Scroll views now only wheel-scroll if the mouse is hovering over them.
This commit is contained in:
Henrik Rydgård committed 2025-12-19 11:38:56 +01:00
1 parent dd112491db
commit 481d0fd18c
84 files changed
+265 -186

No files matched your search

+1 -1
View File
@@ -544,7 +544,7 @@ bool OnScreenMessagesView::Dismiss(float x, float y) {
bool OSDOverlayScreen::UnsyncTouch(const TouchInput &touch) {
// Don't really need to forward.
// UIScreen::UnsyncTouch(touch);
if ((touch.flags & TOUCH_DOWN) && osmView_) {
if ((touch.flags & TouchInputFlags::DOWN) && osmView_) {
return osmView_->Dismiss(touch.x, touch.y);
} else {
return false;