Skip to content

Commit

Permalink
fix(player): don't show skip button while editing
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Mar 30, 2022
1 parent 43c67d7 commit b6f931d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { TIMESTAMP_TYPES } from '~/common/utils/constants';
import Utils from '~/common/utils/GeneralUtils';
import { useDisplayedTimestamps } from '../hooks/useDisplayedTimestamps';
import { useIsToolbarVisible } from '../hooks/useIsToolbarVisible';
import { useIsEditing } from '../state/useEditingState';
import { useDuration, useVideoController, useVideoState } from '../state/useVideoState';
const SKIP_BUTTON_OFFSET = 0.1;
Expand Down Expand Up @@ -51,12 +52,14 @@ const currentTimeStampIsSkipped = computed(
// Show / Skip
const isEditing = useIsEditing();
const showSkipButton = computed(
() =>
isToolbarVisible.value &&
currentTimeStampIsSkipped.value &&
!preferences.value.enableAutoSkip &&
!isVideoOver.value &&
!isEditing.value &&
currentTimestampTitle.value
);
watch(currentTimeStampIsSkipped, newIsSkipped => {
Expand Down

0 comments on commit b6f931d

Please sign in to comment.