[Canvas] Fix top left elements being automatically selected on workpad page loads (#72121)

* Fix top left elements being automatically selected on workpad page loads

* Remove unnecessary code

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Poff Poffenberger 2020-07-27 12:18:33 -05:00 committed by GitHub
parent e9fa2f3542
commit 6631a296ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ const componentLayoutState = ({
gestureState: aeroStore
? aeroStore.getCurrentState().currentScene.gestureState
: {
cursor: { x: 0, y: 0 },
cursor: { x: Infinity, y: Infinity },
mouseIsDown: false,
mouseButtonState: { buttonState: 'up', downX: null, downY: null },
},