From 4b2c03b88d9f2198f21a1b893e458e91caeaeda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 23 Jul 2022 01:43:03 +0200 Subject: [PATCH] overlay onControlChange use control events. --- src/component/overlay.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/component/overlay.vue b/src/component/overlay.vue index c8cdf146..fecdb31e 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -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()