Skip to content

Commit f347d6f

Browse files
committed
Use seek step size for the seek tools
1 parent f664099 commit f347d6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chrome/player/ui/InterfaceController.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export class InterfaceController {
540540

541541
DOMElements.skipForwardButton.addEventListener('click', (e) => {
542542
this.client.setSeekSave(false);
543-
this.client.currentTime += 10;
543+
this.client.currentTime += this.client.options.seekStepSize * 5;
544544
this.client.setSeekSave(true);
545545
e.stopPropagation();
546546
});
@@ -549,7 +549,7 @@ export class InterfaceController {
549549

550550
DOMElements.skipBackwardButton.addEventListener('click', (e) => {
551551
this.client.setSeekSave(false);
552-
this.client.currentTime += -10;
552+
this.client.currentTime += -this.client.options.seekStepSize * 5;
553553
this.client.setSeekSave(true);
554554
e.stopPropagation();
555555
});

0 commit comments

Comments
 (0)