From 6fb6f86f3791b1d8265a2500f5b08e00f95ac2f1 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 25 Aug 2019 18:08:59 -0300 Subject: Fix menuLayer capturing all mouse events! --- tui-lib | 2 +- ui.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tui-lib b/tui-lib index acb8c05..878e55e 160000 --- a/tui-lib +++ b/tui-lib @@ -1 +1 @@ -Subproject commit acb8c05987c72ceca423acf2f5761a50f641d1f8 +Subproject commit 878e55e7c2a203d89fb1dad83ba6d6d8751b521a 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) -- cgit 1.3.0-6-gf8a5