summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-04 05:02:13 +0300
committerDevaev Maxim <[email protected]>2018-11-04 05:02:13 +0300
commit5c0a943055e07f6ef1ec9f14acd5d17098aa455d (patch)
treed7e582b96f6ca4333acccf1755c2e04ee0792a19 /web
parent341b9be3d3cc87cda8c564bc945b59ae30036fdf (diff)
fixed mouse led on ios
Diffstat (limited to 'web')
-rw-r--r--web/js/mouse.js4
1 files changed, 3 insertions, 1 deletions
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 {