fix implicit control req: race condition deadlock.

This commit is contained in:
Miroslav Šedivý 2022-09-15 21:11:42 +02:00
parent 879d921e55
commit a1860d5f56

View File

@ -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
}
}