Closed alirezamirian closed 6 months ago
Both options seems to be relevant. PRs are welcome
:tada: This issue has been resolved in version 1.12.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.13.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Some UI components that support drag/swipe by touch, ignore immediate touch move after touch start, not to interfere with page scrolling. Example: https://react-spectrum.adobe.com/react-spectrum/RangeCalendar.html
Right now it's not possible to use realSwipe for testing such components. There is also no support for lower-level commands like touchStart and touchEnd to implement such touch gestures.
Adding an option to specify the delay between touch start and touch moves would help covering such scenarios. I've already tested it and I can open a PR if the option makes sense.
Alternative solutions
realTouchStart
,realTouchMove
andrealTouchEnd
(similar torealMouseDown
,realMouseMove
, andrealMouseUp
)realDrag
, that would have a similardelay
option, and an option to specify if the drag is via touch or mouse.