From fd3b7e7ee7fe2fba5b4ccb148219ecd3d3f03c57 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Sun, 7 Jun 2020 11:17:28 -0400 Subject: [PATCH] set interaction for viewportPane on mouse down --- platform/ui/src/components/ViewportPane/ViewportPane.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/ui/src/components/ViewportPane/ViewportPane.jsx b/platform/ui/src/components/ViewportPane/ViewportPane.jsx index 2388fa229..b1374ca14 100644 --- a/platform/ui/src/components/ViewportPane/ViewportPane.jsx +++ b/platform/ui/src/components/ViewportPane/ViewportPane.jsx @@ -39,6 +39,7 @@ function ViewportPane({ // onInteraction... // https://reactjs.org/docs/events.html#mouse-events // https://stackoverflow.com/questions/8378243/catch-scrolling-event-on-overflowhidden-element + onMouseDown={onInteraction} onClick={onInteraction} onScroll={onInteraction} onWheel={onInteraction} @@ -76,6 +77,6 @@ const noop = () => {}; ViewportPane.defaultProps = { onInteraction: noop, -} +}; export default ViewportPane;