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
2025-12-19 11:38:56 +01:00
parent dd112491db
commit 481d0fd18c
84 changed files with 265 additions and 186 deletions
+3 -3
View File
@@ -68,7 +68,7 @@ public:
DisplayLayoutConfig &config = g_Config.GetDisplayLayoutConfig(orientation_);
if ((touch.flags & TOUCH_MOVE) != 0 && dragging_) {
if ((touch.flags & TouchInputFlags::MOVE) != 0 && dragging_) {
float relativeTouchX = touch.x - startX_;
float relativeTouchY = touch.y - startY_;
@@ -87,7 +87,7 @@ public:
}
}
if ((touch.flags & TOUCH_DOWN) != 0 && !dragging_) {
if ((touch.flags & TouchInputFlags::DOWN) != 0 && !dragging_) {
// Check that we're in the central 80% of the screen.
// If outside, it may be a drag from displaying the back button on phones
// where you have to drag from the side, etc.
@@ -102,7 +102,7 @@ public:
}
}
if ((touch.flags & TOUCH_UP) != 0 && dragging_) {
if ((touch.flags & TouchInputFlags::UP) != 0 && dragging_) {
dragging_ = false;
}