set interaction for viewportPane on mouse down

This commit is contained in:
dannyrb 2020-06-07 11:17:28 -04:00
parent bd60b66977
commit fd3b7e7ee7

View File

@ -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;