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

Allow overriding Pan interaction ID #1166

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Allow overriding Pan interaction ID #1166

merged 1 commit into from
Jul 13, 2022

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Jul 12, 2022

Follow-up to #1143

The solution of allowing multiple buttons to be passed to the Pan component did not allow for the scenario where one and only of the buttons needs to be combined to a modifier key - e.g. middle button without modifier key AND left button with Ctrl modifier key:

      <Pan id="PanMiddle" button={MouseButton.Middle} />
      <Pan id="PanLeft" button={MouseButton.Left} modifierKey="Control" />

apps/storybook/src/Pan.stories.tsx Outdated Show resolved Hide resolved
@axelboc axelboc force-pushed the interaction-ids branch 2 times, most recently from c8e43e3 to d0eeb8a Compare July 12, 2022 13:15
@axelboc axelboc merged commit e6c284e into main Jul 13, 2022
@axelboc axelboc deleted the interaction-ids branch July 13, 2022 06:49
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.

2 participants