mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix implicit control req: race condition deadlock.
This commit is contained in:
parent
879d921e55
commit
a1860d5f56
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user