Skip to content

Fix: inability to drag gallery on touch devices#14

Merged
andrewrubin merged 6 commits intomainfrom
bugfix/draggable
Nov 14, 2023
Merged

Fix: inability to drag gallery on touch devices#14
andrewrubin merged 6 commits intomainfrom
bugfix/draggable

Conversation

@andrewrubin
Copy link
Copy Markdown
Member

@andrewrubin andrewrubin commented Nov 14, 2023

What does this do?

This ensures that the browser does not try to interfere with the gallery's pointer events, and only allows the browser to manage vertical scrolling.

What was added

  • gallery--draggable class name added, with appropriate touch-action CSS.
  • Updated the dev demo to include some styles to prevent overflow and help accurately test the gallery across all screen-sizes.

Additional notes

  • Bumped the package version to 3.0.2

Copy link
Copy Markdown
Contributor

@NicholasLancey NicholasLancey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @andrewrubin!

@andrewrubin andrewrubin merged commit a12e2b6 into main Nov 14, 2023
@andrewrubin andrewrubin deleted the bugfix/draggable branch November 14, 2023 22:54
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