Skip to content

Add panButton option#268

Open
RickyTB wants to merge 4 commits intoanvaka:mainfrom
RickyTB:master
Open

Add panButton option#268
RickyTB wants to merge 4 commits intoanvaka:mainfrom
RickyTB:master

Conversation

@RickyTB
Copy link
Copy Markdown

@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.

1 participant