You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My test tap the active image. The test runs very quickly and Swiper interprets that this tap event is actually a double tap because the time passed between this tap and the previous click stored at lastClickTime is less than 300 ms.
That's not true, there was only a single tap, but since the previous tap is stored there and is initialized to now(), Swiper thinks there was two taps.
It could be resolved by initializing the lastClickTime to 0 for example.
I created a simple PR to tackle that. Don't hesitate to come up with a different solution. #6497
The text was updated successfully, but these errors were encountered:
In a recent Cypress test we faced an issue because of this:
swiper/src/core/core.js
Line 185 in 8f48d7f
My test tap the active image. The test runs very quickly and Swiper interprets that this
tap
event is actually adouble tap
because the time passed between this tap and the previous click stored atlastClickTime
is less than 300 ms.That's not true, there was only a single tap, but since the previous tap is stored there and is initialized to now(), Swiper thinks there was two taps.
It could be resolved by initializing the
lastClickTime
to 0 for example.I created a simple PR to tackle that. Don't hesitate to come up with a different solution. #6497
The text was updated successfully, but these errors were encountered: