« get me outta code hell

Fix menuLayer capturing all mouse events! - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-08-25 18:08:59 -0300
committerFlorrie <towerofnix@gmail.com>2019-08-25 18:10:49 -0300
commit6fb6f86f3791b1d8265a2500f5b08e00f95ac2f1 (patch)
tree1efd7ee84c638fa9a296f66720aee21eac0350bf /ui.js
parent59d4eb91315b39e2ef4a46045cc6cbe2fd5657b2 (diff)
Fix menuLayer capturing all mouse events!
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 6d49649..5371b56 100644
--- a/ui.js
+++ b/ui.js
@@ -166,6 +166,7 @@ class AppElement extends FocusElement {
 
     // We add this is a child later (so that it's on top of every element).
     this.menuLayer = new DisplayElement()
+    this.menuLayer.clickThrough = true
     this.showContextMenu = this.showContextMenu.bind(this)
 
     this.menubar = new Menubar(this.showContextMenu)