Skip to content

Fix window rotation using the move bar#1946

Merged
svillar merged 1 commit intomainfrom
window_rotation
Dec 11, 2025
Merged

Fix window rotation using the move bar#1946
svillar merged 1 commit intomainfrom
window_rotation

Conversation

@svillar
Copy link
Member

@svillar svillar commented Dec 4, 2025

Recent changes regressed the way windows are rotated using the bar bellow the front window. Window position "jumped" just after grabbing the bar. Now we use a much better approach, we compute relative rotations to the initial window position to reorient them. This way we always get the proper orientation even after recentering the view.

Quaternion interpolation using SLERP is also used to smoothen the window movements providing a much more appealing experience.

Fixes #1945

Recent changes regressed the way windows are rotated using the bar
bellow the front window. Window position "jumped" just after grabbing
the bar. Now we use a much better approach, we compute relative
rotations to the initial window position to reorient them. This way we
always get the proper orientation even after recentering the view.

Quaternion interpolation using SLERP is also used to smoothen the window
movements providing a much more appealing experience.

Fixes #1945
@svillar svillar added the release_candidate PR that should be part of the next release label Dec 4, 2025
@svillar svillar requested a review from Copilot December 4, 2025 18:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a regression in window rotation when using the move bar below the front window. The previous implementation caused window positions to "jump" when grabbing the bar. The new approach computes relative rotations from the initial window position and uses quaternion SLERP interpolation for smoother movements.

  • Replaced ad-hoc pitch correction with proper relative rotation calculation
  • Introduced SLERP interpolation to smooth window movements during rotation
  • Simplified the rotation logic by removing the navigationBarToWindowTransform workaround

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and it fixes the issue.
Thanks !

@svillar svillar merged commit 76ef962 into main Dec 11, 2025
28 checks passed
@svillar svillar deleted the window_rotation branch December 11, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_candidate PR that should be part of the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Drag Handle Causes Browser Window to Jump Upward on Meta Quest 3 (v81.0, Wolvic 1.8.3)

3 participants