From 8bfe0c4f676b20f112dd0ad1c2974e05ae4b88b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 2 Dec 2020 10:45:23 +0100 Subject: [PATCH] add implicit control. --- src/component/main.vue | 3 ++ src/component/overlay.vue | 87 +++++++++++++++++++++++++++------------ 2 files changed, 64 insertions(+), 26 deletions(-) diff --git a/src/component/main.vue b/src/component/main.vue index f4809504..7908f50f 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -9,6 +9,9 @@ :isControling="controlling" :scrollSensitivity="state.control.scroll.sensitivity" :scrollInvert="state.control.scroll.inverse" + :implicitControl="true" + @implicit-control-request="websocket.send('control/request')" + @implicit-control-release="websocket.send('control/release')" /> diff --git a/src/component/overlay.vue b/src/component/overlay.vue index 92ef0a77..e3364cc3 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -26,7 +26,7 @@