From b0977da704191d738a5287815be553cb911b5467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 19 Nov 2020 11:42:43 +0100 Subject: [PATCH] Fix some errors --- extension.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension.js b/extension.js index 29ab522..47e113b 100644 --- a/extension.js +++ b/extension.js @@ -361,12 +361,12 @@ class MonitorWidget extends PanelMenu.Button { if (this.onLeave === 'signal') this.dbus.emitSignal('onLeave', this.fullname); else - return this._manageEventAction(this.onEnter); + return this._manageEventAction(this.onLeave); return Clutter.EVENT_PROPAGATE; } - _onScroll(/*actor, event*/) { + _onScroll(actor, event) { if (this.onScroll === 'signal') { let direction = event.get_scroll_direction (); if (direction == Clutter.ScrollDirection.UP) @@ -374,7 +374,7 @@ class MonitorWidget extends PanelMenu.Button { else if (direction == Clutter.ScrollDirection.DOWN) this.dbus.emitSignal('onScrollDown', this.fullname); } else - return this._manageEventAction(this.onEnter); + return this._manageEventAction(this.onScroll); return Clutter.EVENT_PROPAGATE; }