fixed: tap to toggle button not release after being cleared

reload on-screen widgets only when necessary
This commit is contained in:
TrueZhuanjia committed 2025-12-11 16:40:47 +08:00
1 parent 3630880454
commit 46194a5aa0
5 files changed
+30 -18

No files matched your search

+1 -1
View File
@@ -1388,7 +1388,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
- (void)alterAbsTouchDragWith:(int32_t)mouseButton{
if([touchHandler isKindOfClass:[AbsoluteTouchHandler class]]){
AbsoluteTouchHandler* handler = (AbsoluteTouchHandler* )touchHandler;
handler.mouseButtonForCursorMove = mouseButton;
AbsoluteTouchHandler.mouseButtonForCursorMove = mouseButton;
[handler pauseLeftButtonDrag];
}
else return;