aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/js-components/skipButtonControlBar.ts
diff options
context:
space:
mode:
authorÁron Hegymegi-Kiss <[email protected]>2022-01-08 19:30:49 +0100
committerÁron Hegymegi-Kiss <[email protected]>2022-01-08 19:30:49 +0100
commited17d4859fc42d90672c5c355837a6a27197cf80 (patch)
tree993f3a781b08a2667296264776697668d3dca276 /src/js-components/skipButtonControlBar.ts
parentdc560cd73e3cbc148da2183e0518464fb51f9029 (diff)
parent02d8bf9a6f4ad9875dab9cfa4e37f1d884697abd (diff)
downloadSponsorBlock-ed17d4859fc42d90672c5c355837a6a27197cf80.tar.gz
SponsorBlock-ed17d4859fc42d90672c5c355837a6a27197cf80.zip
Merge remote-tracking branch 'origin/master' into settings
# Conflicts: # public/options/options.html # src/config.ts # src/content.ts # src/options.ts
Diffstat (limited to 'src/js-components/skipButtonControlBar.ts')
-rw-r--r--src/js-components/skipButtonControlBar.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts
index 48048632..62f572f0 100644
--- a/src/js-components/skipButtonControlBar.ts
+++ b/src/js-components/skipButtonControlBar.ts
@@ -4,6 +4,7 @@ import { getSkippingText } from "../utils/categoryUtils";
import { keybindToString } from "../utils/configUtils";
import Utils from "../utils";
+import { AnimationUtils } from "../utils/animationUtils";
const utils = new Utils();
export interface SkipButtonControlBarProps {
@@ -81,9 +82,9 @@ export class SkipButtonControlBar {
}
if (!this.onMobileYouTube) {
- utils.setupAutoHideAnimation(this.skipIcon, mountingContainer, false, false);
+ AnimationUtils.setupAutoHideAnimation(this.skipIcon, mountingContainer, false, false);
} else {
- const { hide, show } = utils.setupCustomHideAnimation(this.skipIcon, mountingContainer, false, false);
+ const { hide, show } = AnimationUtils.setupCustomHideAnimation(this.skipIcon, mountingContainer, false, false);
this.hideButton = hide;
this.showButton = show;
}
@@ -105,7 +106,7 @@ export class SkipButtonControlBar {
this.refreshText();
this.textContainer?.classList?.remove("hidden");
- utils.disableAutoHideAnimation(this.skipIcon);
+ AnimationUtils.disableAutoHideAnimation(this.skipIcon);
this.startTimer();
}
@@ -161,7 +162,7 @@ export class SkipButtonControlBar {
this.getChapterPrefix()?.classList?.add("hidden");
- utils.enableAutoHideAnimation(this.skipIcon);
+ AnimationUtils.enableAutoHideAnimation(this.skipIcon);
if (this.onMobileYouTube) {
this.hideButton();
}