mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
fix implicit control req: race condition deadlock.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user