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

Fix #1608: Overlapped Div Gets Clicked When Closing Pswp From UI Toolbar #1628

Closed
wants to merge 2 commits into from
Closed

Conversation

fatihkizmaz
Copy link

Closing photoswipe too fast causes overlapped div gets clicked! To prevent this added 10 ms delay before closing pswp.

Fixes: #1608

Closing photoswipe too fast causes, overlapping div gets clicked! To prevent this added 10 ms delay before closing pswp.
@ast-osoloviov
Copy link

It should be enough to use timeout without 10ms delay

Removed 10ms delay. setTimeout is enough.
@fatihkizmaz
Copy link
Author

@ast-osoloviov You are right, setTimeout is enough. Removed 10ms delay.

Copy link

@ast-osoloviov ast-osoloviov left a comment

Choose a reason for hiding this comment

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

The implementation I'm using for such cases

@dimsemenov
Copy link
Owner

Fixed by v5.0.

@dimsemenov dimsemenov closed this Apr 29, 2021
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.

When Clicking Close Button, Overlapped Div Gets Clicked Also!
3 participants