From f4acfb635ad6879c1530efdc1b8bb56053cdad31 Mon Sep 17 00:00:00 2001 From: Lorenzo Tilve Date: Tue, 4 May 2021 14:31:34 +0200 Subject: Disable dragging and zoom events on app images Events triggered by webapps on those actions were producing some race conditions eventually causing a freeze. So disabling those and hiding displaying draggable link. Bug-AGL: SPEC-3786 Signed-off-by: Lorenzo Tilve Change-Id: I64485b93077e1205fcd6d43ffa352b6a162db8fa --- src/index.html | 6 +++--- src/styles/main.scss | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 5dac7c5..5095354 100644 --- a/src/index.html +++ b/src/index.html @@ -31,14 +31,14 @@
{{ name }}: {{ value }}%
- +
- + @@ -48,4 +48,4 @@ - \ No newline at end of file + diff --git a/src/styles/main.scss b/src/styles/main.scss index 8f388c9..d45f2bb 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -53,6 +53,13 @@ html { height: 100%; background-size: cover; -webkit-overflow-scrolling: touch; + user-select: none; +} + +img { + user-select: none !important; + touch-action: none; + pointer-events: none; } body { @@ -143,4 +150,4 @@ body { background: white; font-size: 1.5rem; } -} \ No newline at end of file +} -- cgit 1.2.3-korg