mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fixed mouse led on ios
This commit is contained in:
parent
341b9be3d3
commit
5c0a943055
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user