mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-06 00:51:56 +01:00
feat: double tap to seek
This commit is contained in:
@@ -17,7 +17,7 @@ export const GestureControls: React.FC<Props> = ({ ...props }) => {
|
||||
|
||||
const disabled = useMemo(
|
||||
() =>
|
||||
pluginSettings?.enableHorizontalSwipeSkip?.locked === true &&
|
||||
pluginSettings?.enableDoubleTapSkip?.locked === true &&
|
||||
pluginSettings?.enableLeftSideBrightnessSwipe?.locked === true &&
|
||||
pluginSettings?.enableRightSideVolumeSwipe?.locked === true,
|
||||
[pluginSettings],
|
||||
@@ -35,13 +35,13 @@ export const GestureControls: React.FC<Props> = ({ ...props }) => {
|
||||
subtitle={t(
|
||||
"home.settings.gesture_controls.horizontal_swipe_skip_description",
|
||||
)}
|
||||
disabled={pluginSettings?.enableHorizontalSwipeSkip?.locked}
|
||||
disabled={pluginSettings?.enableDoubleTapSkip?.locked}
|
||||
>
|
||||
<Switch
|
||||
value={settings.enableHorizontalSwipeSkip}
|
||||
disabled={pluginSettings?.enableHorizontalSwipeSkip?.locked}
|
||||
onValueChange={(enableHorizontalSwipeSkip) =>
|
||||
updateSettings({ enableHorizontalSwipeSkip })
|
||||
value={settings.enableDoubleTapSkip}
|
||||
disabled={pluginSettings?.enableDoubleTapSkip?.locked}
|
||||
onValueChange={(enableDoubleTapSkip) =>
|
||||
updateSettings({ enableDoubleTapSkip })
|
||||
}
|
||||
/>
|
||||
</ListItem>
|
||||
|
||||
Reference in New Issue
Block a user