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 panButton option #268

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add panButton option #268

wants to merge 4 commits into from

Conversation

RickyTB
Copy link

@RickyTB RickyTB commented Dec 31, 2021

This PR adds the functionality to choose which mouse button you prefer in order to pan the element. Defaults to left mouse button.

panzoom(element, {
  panButton: 'left' | 'middle',
});

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.

None yet

1 participant