-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[preact/compat] onTouchMoveCapture not processed #4237
Copy link
Copy link
Closed
Description
- Check if updating to the latest Preact version resolves the issue
Describe the bug
I noticed the react-remove-scroll library is not working with preact/compat on a mobile device, because the event onTouchMoveCapture (and I think some others xxxCapture) is not processed at all.
To Reproduce
https://stackblitz.com/edit/create-preact-starter-qdpzqk?file=src%2Findex.jsx
Steps to reproduce the behavior: Open the stackblitz in a new window, then open Chrome Dev tools, then simulate a mobile device : no log is issued when I scroll the view. If I change to onTouchMove, it's working fine
Likely cause : the event method name is fully lowercased in compat/src/render.js, before the regex testing if the event ends with Capture, fails. (Because it's case sensitive, and ontouchmovecapture does not end with Capture)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels