Prevent touch controls from fading away while being held.

Fixes #20531
This commit is contained in:
Henrik Rydgård
2026-02-04 00:00:38 +01:00
parent c9494bd579
commit 7b1ba55e72
13 changed files with 65 additions and 79 deletions
+3 -2
View File
@@ -49,9 +49,10 @@ public:
scale_ = theScale_;
}
bool IsDown() override {
bool IsDown() const override {
// Don't want the button to enlarge and throw the user's perspective
// of button size off whack.
// of button size off whack. Also, the other purpose of IsDown is to prevent auto-hide,
// but it's not relevant here.
return false;
};