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

dispatch slideEnd when pointerCapture is lost #3408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukeingalls
Copy link

This is meant to address #1760.

When testing I noticed that pointerUp fires unreliably. In order to reliably commit updates when a slide ends I also need to monitor lostPointerCapture. I don't know how to consistently force this event to emit but it seems more likely when I drag outside of the browser window.

This demo is shot from this branch on the storybook view. The log is associated with the event listener that is calling onSlideEnd.

Screen.Recording.2025-03-06.at.5.00.25.PM.mov

@lukeingalls lukeingalls changed the title commit slide ends when pointer capture is lost dispatch slideEnd when pointerCapture is lost Mar 7, 2025
Copy link

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

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