AmruthPillai / Reactive-Resume

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
https://rxresu.me
MIT License
25.89k stars 2.65k forks source link

feat(toggle-pan): Add toggle to switch between "Scroll to Pan" and "Scroll to Zoom" #2017

Open infinia-yzl opened 3 months ago

infinia-yzl commented 3 months ago

Motivation:

To improve UX with trackpads.

Explanation:

The current trackpad behaviour does not feel natural. Usually when scrolling on a trackpad using 2 fingers, the page or content would Pan; whereas Zooming is achieved by pinching 2 fingers.

Considerations:

On a mouse, it is arguably more user-friendly to Scroll to Zoom. Therefore, I have added a toggle button to switch between behaviours.

I opted for the default behaviour to be Scroll to Pan because there are already various methods to control the zoom levels, and I believe that panning actions are more common than zooming. For context, the default Double-click behaviour is set to Zoom In; and there are the Zoom In & Out buttons on the toolbar to control the zoom levels. Open to discussion / change.

Changes:

Screenshot:

New button

image