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

Only drag zoom on left mouse button #671

Merged
merged 1 commit into from Sep 1, 2022

Commits on Sep 1, 2022

  1. Only drag zoom on left mouse button

    This makes drag act the same as pan (which is implemented by Hammer.js, which - as far as I can tell - automatically only listens to the left / primary mouse button).
    
    By default, right-click is intercepted by the browser to display a context menu, so this isn't noticeable,  However, if `oncontextmenu` is used to disable that (e.g., to use JS to display a menu instead), then right-click can trigger zoom, which feels strange.
    joshkel committed Sep 1, 2022
    Copy the full SHA
    26cc0ab View commit details
    Browse the repository at this point in the history