minor improvement

This commit is contained in:
True Zhuanjia committed 2024-05-31 19:23:36 +08:00
1 parent c9f4113534
commit 42efa1f2c8
1 file changed
+5 -5
+5 -5
View File
@@ -506,7 +506,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
// return; // return;
// //
// } // }
// TemporarySettings* settings = [[[DataManager alloc] init] getSettings]; // // TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
// if (settings.absoluteTouchMode) { // if (settings.absoluteTouchMode) {
// [self handleUITouch:arr1[i] index:i]; // [self handleUITouch:arr1[i] index:i];
// return; // return;
@@ -518,7 +518,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
return; return;
} }
} }
TemporarySettings* settings = [[[DataManager alloc] init] getSettings]; // TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
if (settings.absoluteTouchMode) { if (settings.absoluteTouchMode) {
[self handleUITouch:touch index:0]; [self handleUITouch:touch index:0];
@@ -668,7 +668,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
return; return;
} }
} }
TemporarySettings* settings = [[[DataManager alloc] init] getSettings]; // TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
if (settings.absoluteTouchMode) { if (settings.absoluteTouchMode) {
[self handleUITouch:touch index:0]; [self handleUITouch:touch index:0];
// return; // return;
@@ -761,7 +761,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
return; return;
} }
} }
TemporarySettings* settings = [[[DataManager alloc] init] getSettings]; // TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
if (settings.absoluteTouchMode) { if (settings.absoluteTouchMode) {
[self handleUITouch:touch index:0]; [self handleUITouch:touch index:0];
// return; // return;
@@ -787,7 +787,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
if (touch.type == UITouchTypePencil) { if (touch.type == UITouchTypePencil) {
[self sendStylusEvent:touch]; [self sendStylusEvent:touch];
} }
TemporarySettings* settings = [[[DataManager alloc] init] getSettings]; // TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
if (settings.absoluteTouchMode) { if (settings.absoluteTouchMode) {
[self handleUITouch:touch index:0]; [self handleUITouch:touch index:0];
// return; // return;