[fix] Pressable prevent longpress contextmenu on Windows

Long-press with a touch on a Pressable does not suppress the contextmenu
on Windows. On iOS and Android, the contextmenu is triggered while the
pointer is down, after a certain length of time. However, on Windows,
the contextmenu is displayed after pointerup (with the same timestamp as
pointerup), whether triggered by a mouse right-click or a touch
long-press.

Fix #2296
Close #2316
This commit is contained in:
yuxizhe
2022-06-29 03:27:21 +08:00
committed by Nicolas Gallagher
parent 07feddf300
commit 4a9bea27a8
2 changed files with 10 additions and 1 deletions
@@ -14,5 +14,9 @@
"react-dom": "^17.0.2",
"react-native-web": "0.18.6"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/preset-flow": "^7.18.6"
},
"license": "MIT"
}