Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a41360c4c68adf6e2426e5f530531d6563fbafaf
https://github.com/WebKit/WebKit/commit/a41360c4c68adf6e2426e5f530531d6563fbafaf
Author: Phipson Lee <[email protected]>
Date: 2025-02-28 (Fri, 28 Feb 2025)
Changed paths:
M Source/WebKit/WebKitSwift/StageMode/WKStageMode.swift
Log Message:
-----------
StageMode Orbit should decelerate on release of pinch
https://bugs.webkit.org/show_bug.cgi?id=288738
rdar://144645278
Reviewed by Wenson Hsieh.
This PR modifies the StageModeInteractionDriver by tracking the pinch velocity
of the modelInteractionPanGestureRecognizer
while orbit is performed, to then apply a separate animation on the
turntableContainer to decelerate the rotation
after the pinch ends. We apply a separate animation onto the turntableContainer
that is triggered through a proxy. If the
velocity is reduced below a certain threshold before the animation ends, we
perform an early return and terminate the interaction
* Source/WebKit/WebKitSwift/StageMode/WKStageMode.swift:
(WKStageModeInteractionDriver.currentOrbitVelocity):
(WKStageModeInteractionDriver.yawDecelerationAnimationController):
(WKStageModeInteractionDriver.yawAnimationIsPlaying):
(WKStageModeInteractionDriver.interactionDidBegin(_:)):
(WKStageModeInteractionDriver.interactionDidEnd):
(WKStageModeInteractionDriver.stageModeInteractionInProgress):
(WKStageModeInteractionDriver.subscribeToPitchChanges):
(WKStageModeInteractionDriver.subscribeToYawChanges):
- Apply a new animation to the yaw/turntableContainer for stagemode that
decelerates the rotation over time
Canonical link: https://commits.webkit.org/291412@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes