Minimal android compatibility

Note that Samsung devices can't handle (hover: none) media query
This commit is contained in:
Maxim Devaev
2022-10-07 02:36:46 +03:00
parent 684b0185f7
commit e1c4a5163d
14 changed files with 27 additions and 23 deletions

View File

@@ -129,7 +129,7 @@ export function Mouse(__getGeometry, __recordWsEvent) {
var __updateOnlineLeds = function() {
let is_captured;
if (__absolute) {
is_captured = (__stream_hovered || tools.browser.is_ios);
is_captured = (__stream_hovered || tools.browser.is_mobile);
} else {
is_captured = __isRelativeCaptured();
}

View File

@@ -71,7 +71,7 @@ export function Ocr(__getGeometry) {
/************************************************************************/
self.setState = function(state) {
let enabled = (state && state.ocr.enabled && navigator.clipboard && !tools.browser.is_ios);
let enabled = (state && state.ocr.enabled && navigator.clipboard && !tools.browser.is_mobile);
if (enabled) {
let selected = tools.storage.get("stream.ocr.lang", state.ocr.langs["default"]);
let html = "";