PopupSliderMenuItem: connect to scroll-event on the whole actor
Connect to scroll-event on .actor, not ._slider, so you can scroll on the whole menu item. https://bugzilla.gnome.org/show_bug.cgi?id=633668
This commit is contained in:
parent
ab206ff82a
commit
bff553e978
@ -370,7 +370,7 @@ PopupSliderMenuItem.prototype = {
|
|||||||
this.addActor(this._slider, 0, -1);
|
this.addActor(this._slider, 0, -1);
|
||||||
this._slider.connect('repaint', Lang.bind(this, this._sliderRepaint));
|
this._slider.connect('repaint', Lang.bind(this, this._sliderRepaint));
|
||||||
this._slider.connect('button-press-event', Lang.bind(this, this._startDragging));
|
this._slider.connect('button-press-event', Lang.bind(this, this._startDragging));
|
||||||
this._slider.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
|
this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
|
||||||
|
|
||||||
this._releaseId = this._motionId = 0;
|
this._releaseId = this._motionId = 0;
|
||||||
this._dragging = false;
|
this._dragging = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user