diff options
author | Jeremy White <jwhite@codeweavers.com> | 2019-12-31 10:52:12 -0600 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2020-04-07 10:13:00 +0100 |
commit | 2c36a2474b96dc781040d29de726c5b60b318b56 (patch) | |
tree | b26c4828570f499c64839e9d39866a3925f1b3d5 | |
parent | 8b238f0eeb15d1e3354be715633596e574eb92a4 (diff) |
Allow pointer events to go through our videos.
If a video covers up a substantial portion of the screen,
you can no longer interact with it.
This change allows pointer events to flow through to our canvas.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | src/display.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.js b/src/display.js index cac0715..4941884 100644 --- a/src/display.js +++ b/src/display.js @@ -571,7 +571,7 @@ SpiceDisplayConn.prototype.process_channel_message = function(msg) top += this.surfaces[m.surface_id].canvas.offsetTop; } document.getElementById(this.parent.screen_id).appendChild(v); - v.setAttribute('style', "position: absolute; top:" + top + "px; left:" + left + "px;"); + v.setAttribute('style', "pointer-events:none; position: absolute; top:" + top + "px; left:" + left + "px;"); media.addEventListener('sourceopen', handle_video_source_open, false); media.addEventListener('sourceended', handle_video_source_ended, false); |