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

Enable Freeform Trackpad Input for Simultaneous Panning and Zooming #9

Open
cabaucom376 opened this issue Jan 16, 2025 · 1 comment

Comments

@cabaucom376
Copy link
Collaborator

Description

Current Behavior

The current implementation of trackpad input does not allow users to pan and zoom simultaneously on the canvas. Panning and zooming are restricted to discrete interactions, which limits the fluidity and usability of the interface for tasks requiring precise or dynamic control.

Proposed Improvement

Introduce a "freeform" trackpad input behavior that supports simultaneous panning and zooming. This enhancement would enable smoother, more intuitive interactions with the canvas.

Benefits

  • Enhanced user experience for tasks requiring precision.
  • Improved alignment with user expectations for trackpad gestures.
  • Increased workflow efficiency for users relying on multitouch gestures.

Steps to Implement

  1. Determine the appropriate Flutter API for receiving both inputs simultaneously.
  2. Map the inputs to _setZoom and _setOffset in some manner.
  3. Verify behavior is consistent with mouse panning and zooming.
@WilliamKarolDiCioccio
Copy link
Owner

I've temporarily disabled simultaneous pan and zoom in commit 7cec970 as it works horribly on Windows with the viewport becoming nearly uncontrollable

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

No branches or pull requests

2 participants