- touchpad gesture tweaks and improvements

- cancel realtime switch for single point touch gesture passthrough
- cancel remembering settings menu content offset
This commit is contained in:
TrueZhuanjia
2025-11-08 11:34:54 +08:00
parent f01d36d4a0
commit 5c646ef3d2
6 changed files with 20 additions and 17 deletions
@@ -457,15 +457,15 @@ BOOL isCustomResolution(int resolutionSelected) {
[self updateResolutionTable];
_scrollView.contentOffset = CGPointMake(_scrollView.contentOffset.x, tempSettings.settingsMenuOffset.floatValue);
// _scrollView.contentOffset = CGPointMake(_scrollView.contentOffset.x, tempSettings.settingsMenuOffset.floatValue);
/// cancel restoring contentOffset
[self.customResolutionSwitch addTarget:self action:@selector(customResolutionSwitched:) forControlEvents:UIControlEventValueChanged];
//CGSize currentResolution = CGSizeMake(currentSettings.width.intValue, currentSettings.height.intValue);
[self.customResolutionSwitch setOn: isCustomResolution(self->tempSettings.resolutionSelected.intValue)];
[self.resolutionSelector setEnabled:!self.customResolutionSwitch.isOn];
[self touchModeChanged:self.touchModeSelector1]; // a special fix for iOS 14 to set hidden for the "enableOswStack"
settingsViewJustExpanded = false;
}
@@ -1917,7 +1917,7 @@ BOOL isCustomResolution(int resolutionSelected) {
[self touchModeChanged:self.touchModeSelector1];
[self.touchModeSelector2 addTarget:self action:@selector(touchMode2Changed:) forControlEvents:UIControlEventValueChanged];
self.touchModeSelector2.selectedSegmentIndex = self.touchModeSelector1.selectedSegmentIndex;
// self.enableOswSwitchStack.hidden = !(self->tempSettings.touchMode.intValue == NativeTouch || self->tempSettings.touchMode.intValue == NativeTouchOnly); // do not use setHidden to stack wrapped by a settingStack