snap-slider icon indicating copy to clipboard operation
snap-slider copied to clipboard

Safari Bug: goto({ focus: false }) still triggers focus on scroll.end event

Open tannerhodges opened this issue 4 years ago • 1 comments

Issue was reported where trying to call slider.goto({ focus: false }) ended up still focusing the slide in Safari.

Seems like the scroll.end event is somehow delayed in Safari, and since it doesn't inherit options from the initial goto() call it focuses by default.

In this specific example, it was for two synced sliders (via a change callback). Couple different ways we could go (e.g., making "sync" a core feature, or adding a "disable focus" option, etc.).

Going to have to dig into this one (and hope Cypress implements Safari support soon 😬).

tannerhodges avatar Oct 08 '20 16:10 tannerhodges

and hope Cypress implements Safari support soon 😬

Same!

artmsilva avatar Oct 08 '20 16:10 artmsilva