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

FR: Improve trackpad zoom behavior to match macOS conventions. Adjust trackpad zoom sensitivity #126

Open
greetclammy opened this issue Nov 3, 2024 · 0 comments
Labels
compatible Compatible issues with other plugins

Comments

@greetclammy
Copy link

Current Behavior

When using a macOS trackpad to resize images with Image Toolkit, the zoom in/out behavior is notably more aggressive compared to standard macOS applications. A small trackpad gesture results in a disproportionately large zoom change.

Desired Behavior

  1. Primary Request: Adjust the default zoom sensitivity to match macOS conventions

    • Provide smoother, more controlled zoom transitions
  2. Alternative Solution: Add configurable zoom sensitivity

    • Allow users to adjust how much each scroll gesture affects the zoom level
    • Add a sensitivity slider in the plugin settings
    • Potential settings:
      Zoom Sensitivity: [Low] ---|●--- [High]
      

Benefits

  • Improved user experience for macOS users
  • More precise control over image viewing
  • Better consistency with platform conventions
  • Reduced frustration when working with images

Implementation Notes

  • Consider using the native macOS scroll/zoom acceleration curves
  • Could reference Safari's image zoom behavior as a baseline
  • May need to adjust the zoom multiplier applied to trackpad gesture events

Additional Context

This improvement would be particularly beneficial for users who frequently work with images and require precise control over zoom levels, such as when:

  • Examining image details
  • Preparing documentation
  • Comparing multiple images

Environment

  • OS: macOS
  • Device: Magic Trackpad
  • Obsidian Version: 1.7.4
  • Image Toolkit Version: 1.4.2

Thank you! 🙏

@sissilab sissilab added the compatible Compatible issues with other plugins label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatible Compatible issues with other plugins
Projects
None yet
Development

No branches or pull requests

2 participants