Bug: how to preventDefault in touchmove #25326
Labels
Resolution: Stale
Automatically closed due to inactivity
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version:
17.0.2
Steps To Reproduce
I want the parent element to not scroll when the child element is scrolled
jsx
css:
When I scroll the child in mobile mode, the outer layer will follow.
Link to code example:

App.js
App.css

The current behavior
the parent scroll when child is touchmove.
The expected behavior
the parent not scroll when child is touchmove.
I saw this issues(https://github.com/facebook/react/issues/19651), I have two questions:
The text was updated successfully, but these errors were encountered: