Add support for long press to context menu on iOS (#1769)

* Initial support for touch context menu

* Only deal with touch if it's available

* Fix touch checking

* Remove touch checking

* Added comments

* Combine onTouch with onPointer for mobile context menu support
This commit is contained in:
Mehedi Hassan
2020-07-02 22:12:56 +01:00
committed by GitHub
parent 8621ddb6a2
commit cc52ea4ac2
2 changed files with 48 additions and 5 deletions

View File

@@ -2,3 +2,4 @@
export const TAP_TWICE_TIMEOUT = 300;
export const INITAL_SCENE_UPDATE_TIMEOUT = 5000;
export const SYNC_FULL_SCENE_INTERVAL_MS = 20000;
export const TOUCH_CTX_MENU_TIMEOUT = 500;