From a1860d5f56ba471073649f703a2b95acbdea8318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 15 Sep 2022 21:11:42 +0200 Subject: [PATCH] fix implicit control req: race condition deadlock. --- src/component/overlay.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/component/overlay.vue b/src/component/overlay.vue index dfecb43d..13aaa432 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -593,12 +593,13 @@ } implicitControlRequest(e: MouseEvent) { - if (this.implicitControl && e.type === 'mousedown' && this.reqMouseDown == null) { + if (this.implicitControl && e.type === 'mousedown') { this.reqMouseDown = e + this.reqMouseUp = null this.wsControl.request() } - if (this.implicitControl && e.type === 'mouseup' && this.reqMouseUp == null) { + if (this.implicitControl && e.type === 'mouseup') { this.reqMouseUp = e } }