From 4508992519a7203369c60406625e50b4e93d0f57 Mon Sep 17 00:00:00 2001 From: Lorenzo Tilve Date: Tue, 6 Apr 2021 11:48:16 +0200 Subject: Disable dragging and zoom events on app images We identified that part of the problems that were triggering the race condition were related with starting the drag of webapp images. Disabling those events, and also removing href link to avoid displaying draggable link. Bug-AGL: SPEC-3786 Signed-off-by: Lorenzo Tilve Change-Id: I075d6bcd35700dcdd2e66cbc4b00f71527f2069e --- src/index.html | 22 +++++++++++----------- src/styles/main.scss | 10 +++++++++- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/index.html b/src/index.html index 4a1fdfd..88ea3fa 100644 --- a/src/index.html +++ b/src/index.html @@ -36,21 +36,21 @@
- +
AUTO
- + @@ -78,23 +78,23 @@
- + - + - + - + - + @@ -103,4 +103,4 @@
- \ No newline at end of file + diff --git a/src/styles/main.scss b/src/styles/main.scss index fca72d9..5d2d950 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -55,8 +55,16 @@ 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 { font-size: 1.2rem; font-family: Arial; @@ -230,4 +238,4 @@ body { background: white; font-size: 1.5rem; } -} \ No newline at end of file +} -- cgit 1.2.3-korg