From 5c0a943055e07f6ef1ec9f14acd5d17098aa455d Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 4 Nov 2018 05:02:13 +0300 Subject: fixed mouse led on ios --- web/js/mouse.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/js') diff --git a/web/js/mouse.js b/web/js/mouse.js index 460e2945..dd2ff30d 100644 --- a/web/js/mouse.js +++ b/web/js/mouse.js @@ -41,6 +41,7 @@ function Mouse() { } else { $("stream-box").classList.remove("stream-box-mouse-enabled"); } + __updateLeds(); }; var __hoverStream = function() { @@ -54,7 +55,8 @@ function Mouse() { }; var __updateLeds = function() { - if (__ws && __stream_hovered) { + if (__ws && (__stream_hovered || tools.browser.is_ios)) { + // Mouse is always available on iOS via touchscreen $("hid-mouse-led").className = "led-green"; $("hid-mouse-led").title = "Mouse tracked"; } else { -- cgit v1.2.3