fix(touch): For viewport interactions use onPointerDown. (#4572)
This commit is contained in:
1 parent
ee9593a7e0
commit
6160718fd2
2 files changed
+6
-9
No files matched your search
@@ -58,7 +58,9 @@ function ViewportPane({
|
||||
// onInteractionHandler...
|
||||
// https://reactjs.org/docs/events.html#mouse-events
|
||||
// https://stackoverflow.com/questions/8378243/catch-scrolling-event-on-overflowhidden-element
|
||||
onMouseDown={onInteractionHandler}
|
||||
// Use onPointerDown so that for the config property activateViewportBeforeInteraction===false,
|
||||
// a touch drag will activate the viewport as well as apply the tool selected.
|
||||
onPointerDown={onInteractionHandler}
|
||||
onDoubleClick={onDoubleClick}
|
||||
onClick={onInteractionHandler}
|
||||
onScroll={onInteractionHandler}
|
||||
|
||||
Reference in new issue
Block a user