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: mobile touch on focusable elements jumps element to first position #6139

Conversation

Blacklightdesign
Copy link
Contributor

Fix:

  • check if focus event triggered by touch
  • don't jump the slide element

The problem has been discussed several times and a solution has already been implemented for desktop click events.

On mobile devices with touch gestures, however, the error is still present. If a UI element like select field or button is clicked in a slide element, the slide jumps to the first position.

Exactly as it is desired for the focus events. (if you navigate with tabulator key through the slider).

--> The problem was, with a touch event, the focus event is always triggered. For this I have now implemented a query.

Similar problems:

Always follow the contribution guidelines when submitting a pull request.

to first position
- check if focus event triggered by touch
- don't jump the slide element
@nolimits4web
Copy link
Owner

Merged, thanks!

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