diff options
author | Lorenzo Tilve <ltilve@igalia.com> | 2021-05-04 14:30:07 +0200 |
---|---|---|
committer | Lorenzo Tilve <ltilve@igalia.com> | 2021-05-04 14:30:39 +0200 |
commit | c9c7e02873e723de50a0a4eb7277ad00c98bac46 (patch) | |
tree | 35be63287c813c1c5d3305b03631074e34e4d22f /src | |
parent | f912e5b219b6268573cd9b1d27eb26846dc23ce1 (diff) |
Disable dragging and zoom events on app imagesmarlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin_12.90.0marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.012.93.012.92.012.91.012.90.112.90.011.92.011.91.0
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 <ltilve@igalia.com>
Change-Id: Ie3a381485be9931b0c61b8e140208696995305e5
Diffstat (limited to 'src')
-rw-r--r-- | src/styles/main.scss | 9 | ||||
-rw-r--r-- | src/templates/playlist.template.html | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/styles/main.scss b/src/styles/main.scss index ab40398..afba538 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -6,6 +6,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 { @@ -28,4 +35,4 @@ body { background: white; font-size: 1.5rem; } -}
\ No newline at end of file +} diff --git a/src/templates/playlist.template.html b/src/templates/playlist.template.html index d01f0d6..ece1734 100644 --- a/src/templates/playlist.template.html +++ b/src/templates/playlist.template.html @@ -1,7 +1,6 @@ <div class="list-group"> {{ #playlist }} - <a href="#" - class="list-group-item list-group-item-action {{ #isPlaying }}active{{ /isPlaying }}" + <a class="list-group-item list-group-item-action {{ #isPlaying }}active{{ /isPlaying }}" onclick="player.play({{index}})"> <h6> {{ title }} @@ -12,4 +11,4 @@ </small> </a> {{ /playlist }} -</div>
\ No newline at end of file +</div> |