Enable scroll on volume button

This commit is contained in:
Rafostar
2020-09-14 16:10:09 +02:00
parent 71659491c0
commit 234c49221e
3 changed files with 51 additions and 46 deletions

View File

@@ -52,6 +52,10 @@ class ClapperInterface extends Gtk.Grid
this._player.connect('duration-changed', this._onPlayerDurationChanged.bind(this));
this._player.connect('position-updated', this._onPlayerPositionUpdated.bind(this));
this._player.connectWidget(
'scroll-event', (self, event) => this.controls._onScrollEvent(event)
);
this.controls.togglePlayButton.connect(
'clicked', this._onControlsTogglePlayClicked.bind(this)
);