fixed pencil touch for absoluteTouch

This commit is contained in:
True Zhuanjia
2026-06-22 22:12:15 +08:00
parent c79929f37e
commit a7d7a7975f
4 changed files with 16 additions and 8 deletions
@@ -724,6 +724,8 @@ static NSString* VLTerminationHintForErrorCode(int errorCode) {
[self restorePersistedStreamViewOffsetAndScaleWithProfile:_oscProfile];
GenericUtils.pencilInStreaming = false;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(updateContentOffsetAndScale:)
name:@"GameProfileSelectedNotification"
@@ -1101,7 +1103,7 @@ static NSString* VLTerminationHintForErrorCode(int errorCode) {
}
- (void)setMagnifierViewportInteractionEnabled:(BOOL)enabled {
_magnifierViewportInteractionActive = enabled || (_oscProfile.touchMode == AbsoluteTouch && !_settings.passthroughGestures);
_magnifierViewportInteractionActive = enabled || (_oscProfile.touchMode == AbsoluteTouch && !_settings.passthroughGestures && !GenericUtils.pencilInStreaming);
[self updateScrollViewInteractionState];
}