Fix some errors

This commit is contained in:
Grégory Soutadé 2020-11-19 11:42:43 +01:00
parent bdf3bac8c4
commit b0977da704

View File

@ -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;
}