-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
realSwipe - coordinate does not take cypress scaling (or zoom) into consideration #640
Comments
amoshydra
changed the title
realSwipe coordinate does not take cypress scaling (or zoom) into consideration
realSwipe - coordinate does not take cypress scaling (or zoom) into consideration
Feb 24, 2024
Hi @amoshydra, I was seeing this issue too
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected
Given swipe with length 200px, it should perform a swipe with 200px on the viewport regardless of browser's zoom or cypress scaling.
Current
In 100% zoom, realSwipe triggers a swipe with length 200px (expected)
In 50% zoom, realSwipe triggers a swipe with length ~400px (unexpected)
Reproduce
Perform a swipe with 200px and observe the distance travelled in 100% zoom and 50% zoom.
Notice in the screenshots below,
realSwipe
200px produces the same dots pattern in both 100% and 50%. A shorter dots pattern is expected in 50% zoom.Reproduce repo: https://github.com/amoshydra/repro-dmtrKovalenko-cypress-real-events-i-swipes/tree/real-swipe-with-different-zoomed
Additional note
Possibility related to #10
The text was updated successfully, but these errors were encountered: