NativeTouchHandler improvement, general coding improvements.

This commit is contained in:
True Zhuanjia
2024-06-20 22:52:38 +08:00
parent ee4eb35fe3
commit f09c7be18d
5 changed files with 70 additions and 81 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
switch (settings.touchMode.intValue) {
case NATIVE_TOUCH_MODE:
self->touchHandler = [[NativeTouchHandler alloc] initWith:self and:settings];break;
self->touchHandler = [[NativeTouchHandler alloc] initWithView:self andSettings:settings];break;
case RELATIVE_TOUCH_MODE:
self->touchHandler = [[RelativeTouchHandler alloc] initWithView:self];
keyboardToggleRecognizer.immediateTriggering = true; //triggers signal in touchesBegan callback stage