Skip to content

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Aug 11, 2024

Description

As mentioned in this comment, it may be confusing that Gesture Handler blocks default events even if it is explicitly disabled. This PR adds styles reset when enabled property changes.

Currently it changes 3 things:

  1. Changes touch-action to default value
  2. Changes user-select to default value
  3. Re-enables context menu usage.

I'm not sure if I missed something. If so, please mention it in a comment.

Test plan

Tested on newly added example.

@m-bert m-bert requested review from j-piasecki and latekvo August 11, 2024 16:45
@m-bert m-bert requested a review from j-piasecki August 12, 2024 08:17
@m-bert m-bert requested a review from j-piasecki August 12, 2024 10:48
@m-bert m-bert merged commit f48d46c into main Aug 12, 2024
@m-bert m-bert deleted the @mbert/reset-styles-when-disbaled branch August 12, 2024 12:31
m-bert added a commit that referenced this pull request Aug 26, 2024
## Description

#3041 introduced a regression - calling `updateGestureConfig` resulted
in `NativeViewGestureHandler` having `touchAction: none;` even though it
shouldn't. Because of that our example app didn't scroll.

## Test plan

Check that example app is scrolling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants