Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Apple Trackpad camera controls #3941

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Add Apple Trackpad camera controls #3941

wants to merge 5 commits into from

Conversation

jtran
Copy link
Collaborator

@jtran jtran commented Sep 21, 2024

Resolves #3112.

As stated in the issue, we're trying to mimic Apple Maps on macOS. Shift + push away on the trackpad should always zoom in. Unfortunately, only Safari provides the value of the OS setting for natural scroll direction w3c/uievents#57. On desktop, we're able to use a shell command to read it. The downside is that we don't detect if the user changes the setting while the app is open. I also don't know how to read this setting on Windows and Linux.

  • When should we load the OS setting? I moved it to Home.tsx.
  • Pinch to zoom
  • Multi-touch rotate (AKA twist). Would need to switch to touch events. I don't think it's worth it.
  • Tests

Copy link

qa-wolf bot commented Sep 21, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Sep 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Oct 9, 2024 6:44pm

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.16%. Comparing base (c7dd89e) to head (ee7265b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3941   +/-   ##
=======================================
  Coverage   87.16%   87.16%           
=======================================
  Files          69       69           
  Lines       25176    25176           
=======================================
  Hits        21945    21945           
  Misses       3231     3231           
Flag Coverage Δ
wasm-lib 87.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jessfraz
Copy link
Contributor

Omg yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First-class Apple trackpad support
2 participants