react
react copied to clipboard
Bug: touch and pointer events are not dispatched on the edges of the component
React version: 18.1.0
Steps To Reproduce
- Go to https://namefilip.github.io/touch-events-issue/ on a mobile phone (iPhone 12, iOS 15.5)
- Click in the middle of the block
- Click on the border of the block
- See inconsistent events (pointerup/pointerdown, touchstart/touchend)
Link to code example:
The logic is implemented in the App.js file.
Repository: https://github.com/NameFILIP/touch-events-issue/
The current behavior
Screenshots