Disable canvas if not active (#1890)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user