set interaction for viewportPane on mouse down
This commit is contained in:
parent
bd60b66977
commit
fd3b7e7ee7
@ -39,6 +39,7 @@ function ViewportPane({
|
|||||||
// onInteraction...
|
// onInteraction...
|
||||||
// https://reactjs.org/docs/events.html#mouse-events
|
// https://reactjs.org/docs/events.html#mouse-events
|
||||||
// https://stackoverflow.com/questions/8378243/catch-scrolling-event-on-overflowhidden-element
|
// https://stackoverflow.com/questions/8378243/catch-scrolling-event-on-overflowhidden-element
|
||||||
|
onMouseDown={onInteraction}
|
||||||
onClick={onInteraction}
|
onClick={onInteraction}
|
||||||
onScroll={onInteraction}
|
onScroll={onInteraction}
|
||||||
onWheel={onInteraction}
|
onWheel={onInteraction}
|
||||||
@ -76,6 +77,6 @@ const noop = () => {};
|
|||||||
|
|
||||||
ViewportPane.defaultProps = {
|
ViewportPane.defaultProps = {
|
||||||
onInteraction: noop,
|
onInteraction: noop,
|
||||||
}
|
};
|
||||||
|
|
||||||
export default ViewportPane;
|
export default ViewportPane;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user