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

Apply preventNextMouseDown for touch end to prevent instantly closing popup #1777

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Jan 26, 2025

On some sites, there is an issue where touching too quickly will show the popup but then it will instantly disappear. This only happens when the popup is triggered on a touch end (touch release an touch tap).

Adding preventNextMouseDown prevents erroneous clicks from being registered after the touch release that make the popup close itself.

This implementation is similar to _searchAtFromTouchStart right above it.

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/ui-ux The issue or PR is related to UI/UX/Design labels Jan 26, 2025
@Kuuuube Kuuuube requested a review from a team as a code owner January 26, 2025 20:42
@jamesmaa jamesmaa added this pull request to the merge queue Jan 27, 2025
Merged via the queue into yomidevs:master with commit fda354b Jan 27, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants