chore: formatting

This commit is contained in:
Sam Potts 2020-10-19 22:43:53 +11:00
parent 80bdf04fde
commit fa6282d0e2

View File

@ -569,18 +569,28 @@ class Listeners {
this.bind(elements.buttons.restart, 'click', player.restart, 'restart'); this.bind(elements.buttons.restart, 'click', player.restart, 'restart');
// Rewind // Rewind
this.bind(elements.buttons.rewind, 'click', () => { this.bind(
// Record seek time so we can prevent hiding controls for a few seconds after rewind elements.buttons.rewind,
player.lastSeekTime = Date.now(); 'click',
player.rewind(); () => {
}, 'rewind'); // Record seek time so we can prevent hiding controls for a few seconds after rewind
player.lastSeekTime = Date.now();
player.rewind();
},
'rewind',
);
// Rewind // Rewind
this.bind(elements.buttons.fastForward, 'click', () => { this.bind(
// Record seek time so we can prevent hiding controls for a few seconds after fast forward elements.buttons.fastForward,
player.lastSeekTime = Date.now(); 'click',
player.forward(); () => {
}, 'fastForward'); // Record seek time so we can prevent hiding controls for a few seconds after fast forward
player.lastSeekTime = Date.now();
player.forward();
},
'fastForward',
);
// Mute toggle // Mute toggle
this.bind( this.bind(