necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.67k stars 1.79k forks source link

Using touchAction 'none' on disabled scrollviews affect accessibility #2148

Open DrRefactor opened 3 years ago

DrRefactor commented 3 years ago

The problem

Please see: https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action#accessibility_concerns

Disabling scroll on some ScrollView should not prevent ALL touch actions in this area. Currently it prevents:

How to reproduce Render scrollview with prop scrollEnabled={false}.

Simplified test case: https://codesandbox.io/s/determined-carlos-37nym?file=/src/App.js

Steps to reproduce:

  1. go and try zooming green scrollview
  2. try using area outside red boxes
  3. drag using red box
  4. try pinching red box

Expected behavior A11y compatible way to disable scroll view. Also, nested scrollview that is disabled should not prevent scrolling of outer scroll view.

Environment (include versions). Did this work in previous versions?

laszhiai commented 2 years ago

has any way to solve this problem?