mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Observe surface width instead of video widget
This commit is contained in:
3
src/controls.js
vendored
3
src/controls.js
vendored
@@ -509,10 +509,9 @@ class ClapperControls extends Gtk.Box
|
||||
: Misc.getCubicValue(settings.get_double('volume-last'));
|
||||
|
||||
this.volumeScale.set_value(initialVolume);
|
||||
player.widget.connect('resize', this._onPlayerResize.bind(this));
|
||||
}
|
||||
|
||||
_onPlayerResize(widget, width, height)
|
||||
_onPlayerResize(width, height)
|
||||
{
|
||||
const isMobile = (width < 560);
|
||||
if(this.isMobile === isMobile)
|
||||
|
Reference in New Issue
Block a user