react icon indicating copy to clipboard operation
react copied to clipboard

Bug: touch and pointer events are not dispatched on the edges of the component

Open NameFILIP opened this issue 1 year ago • 0 comments

React version: 18.1.0

Steps To Reproduce

  1. Go to https://namefilip.github.io/touch-events-issue/ on a mobile phone (iPhone 12, iOS 15.5)
  2. Click in the middle of the block
  3. Click on the border of the block
  4. 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

IMG_4140 IMG_4140 IMG_4140 IMG_4140

The expected behavior

IMG_4140

NameFILIP avatar Jul 13 '22 21:07 NameFILIP