Disable canvas if not active (#1890)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-07-10 15:52:17 -04:00
1 parent 8b1a6b2acb
commit 4985fbf5a6
2 files changed
+22 -15

No files matched your search

@@ -41,9 +41,9 @@ function ViewportPane({
}
};
const onInteractionHandler = () => {
onInteraction();
const onInteractionHandler = (event) => {
focus();
onInteraction(event);
};
const refHandler = element => {
@@ -101,7 +101,7 @@ ViewportPane.propTypes = {
onDoubleClick: PropTypes.func,
};
const noop = () => {};
const noop = () => { };
ViewportPane.defaultProps = {
onInteraction: noop,