diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index f4668253..a6fcc63f 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -75,6 +75,7 @@ import ObjectiveC.runtime func resetMagnifierStreamView(animated:Bool) @objc(restoreMagnifierStreamViewWithOffset:scale:) func restoreMagnifierStreamView(offset: CGPoint, scale: CGFloat) + func startStreamViewInteractionTimer() } @objc enum WidgetTypeEnum: UInt8 { @@ -3630,6 +3631,7 @@ import ObjectiveC.runtime } @objc private func vl_autoDock_touchesBegan(_ touches: Set, with event: UIEvent?) { + self.functionalWidgetDelegate?.startStreamViewInteractionTimer() guard autoDockEnabled else { OnScreenWidgetView.autoDockOriginalTouchesBeganIMP?(self, #selector(OnScreenWidgetView.touchesBegan(_:with:)), touches, event) return @@ -3784,6 +3786,8 @@ import ObjectiveC.runtime autoDockIdleDuration = storedAutoDockIdleDuration + self.functionalWidgetDelegate?.startStreamViewInteractionTimer() + if !folded { restartAutoDockCountdown() return diff --git a/VoidLink/Input/StreamView.h b/VoidLink/Input/StreamView.h index 153f096f..8a47c75e 100644 --- a/VoidLink/Input/StreamView.h +++ b/VoidLink/Input/StreamView.h @@ -80,6 +80,8 @@ - (void)setAllowSingleTouchEnabled:(BOOL)enabled; - (void)toggleTouchDisabled:(bool)disabled; +- (void)startInteractionTimer; + #if !TARGET_OS_TV - (void) updateCursorLocation:(CGPoint)location isMouse:(BOOL)isMouse; #endif diff --git a/VoidLink/ViewControllers/StreamFrameViewController.m b/VoidLink/ViewControllers/StreamFrameViewController.m index 03925d18..115da7c7 100644 --- a/VoidLink/ViewControllers/StreamFrameViewController.m +++ b/VoidLink/ViewControllers/StreamFrameViewController.m @@ -2044,6 +2044,7 @@ static __weak StreamFrameViewController *VLSharedStreamFrameViewController = nil } - (void)gamepadPresenceChanged { + if(PublicUtils.iOS26Available) return; #if !TARGET_OS_TV if (@available(iOS 11.0, *)) { [self setNeedsUpdateOfHomeIndicatorAutoHidden]; @@ -2079,6 +2080,7 @@ static __weak StreamFrameViewController *VLSharedStreamFrameViewController = nil // also discard our edges deferring system gestures unless // we willingly give up home bar hiding preference. _userIsInteracting = YES; + if(PublicUtils.iOS26Available) return; #if !TARGET_OS_TV if (@available(iOS 11.0, *)) { [self setNeedsUpdateOfHomeIndicatorAutoHidden]; @@ -2089,6 +2091,7 @@ static __weak StreamFrameViewController *VLSharedStreamFrameViewController = nil - (void)userInteractionEnded { // Enable home bar hiding again if conditions allow _userIsInteracting = NO; + if(PublicUtils.iOS26Available) return; #if !TARGET_OS_TV if (@available(iOS 11.0, *)) { [self setNeedsUpdateOfHomeIndicatorAutoHidden]; @@ -2370,6 +2373,9 @@ static __weak StreamFrameViewController *VLSharedStreamFrameViewController = nil }); } +- (void)startStreamViewInteractionTimer { + [_streamView startInteractionTimer]; +} - (void)dealloc { if (VLSharedStreamFrameViewController == self) {