overlay onControlChange use control events.

This commit is contained in:
Miroslav Šedivý 2022-07-23 01:43:03 +02:00
parent 6f18bde058
commit 4b2c03b88d

View File

@ -547,12 +547,11 @@
if (isControling && this.reqMouseDown) {
this.updateKeyboardModifiers(this.reqMouseDown)
this.sendMousePos(this.reqMouseDown)
this.webrtc.send('mousedown', { key: this.reqMouseDown.button + 1 })
this.onMouseDown(this.reqMouseDown)
}
if (isControling && this.reqMouseUp) {
this.webrtc.send('mouseup', { key: this.reqMouseUp.button + 1 })
this.onMouseUp(this.reqMouseUp)
}
this.canvasRequestRedraw()