Skip to content

Commit

Permalink
Fix blur binding in VideoPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Jun 17, 2024
1 parent bbd345c commit 3fd5703
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/app/components/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ export default function VideoPlayer({
(event, track) => {
event.preventDefault();
const originalValue = textSubtitleSettingsForTrack(subtitleSettings, track).subtitleBlur!;
const change = changeForTextSubtitleSetting({ subtitleBlur: !originalValue }, track);
const change = changeForTextSubtitleSetting({ subtitleBlur: !originalValue }, subtitleSettings, track);
setSubtitleSettings({ ...subtitleSettings, ...change });
},
() => false
Expand Down
2 changes: 1 addition & 1 deletion common/app/services/app-key-binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class AppKeyBinder implements KeyBinder {
}

bindToggleBlurTrack(
onToggleBlurTrack: (event: KeyboardEvent, extra: any) => void,
onToggleBlurTrack: (event: KeyboardEvent, track: number) => void,
disabledGetter: () => boolean,
useCapture?: boolean | undefined
): () => void {
Expand Down
4 changes: 2 additions & 2 deletions common/key-binder/key-binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export interface KeyBinder {
capture?: boolean
): () => void;
bindToggleBlurTrack(
onToggleBlurTrack: (event: KeyboardEvent, extra: any) => void,
onToggleBlurTrack: (event: KeyboardEvent, track: number) => void,
disabledGetter: () => boolean,
capture?: boolean
): () => void;
Expand Down Expand Up @@ -655,7 +655,7 @@ export class DefaultKeyBinder implements KeyBinder {
}

bindToggleBlurTrack(
onToggleBlurTrack: (event: KeyboardEvent, extra: any) => void,
onToggleBlurTrack: (event: KeyboardEvent, track: number) => void,
disabledGetter: () => boolean,
capture = false
) {
Expand Down

0 comments on commit 3fd5703

Please sign in to comment.