mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Add support for disabling mobile media-viewer's fullscreen auto-rotate (#4416)
This commit is contained in:
@@ -553,7 +553,9 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
||||
enterOnRotate: true,
|
||||
exitOnRotate: true,
|
||||
lockOnRotate: true,
|
||||
lockToLandscapeOnEnter: isLandscape,
|
||||
lockToLandscapeOnEnter: uiConfig?.disableMobileMediaAutoRotateEnabled
|
||||
? false
|
||||
: isLandscape,
|
||||
},
|
||||
touchControls: {
|
||||
disabled: true,
|
||||
@@ -679,6 +681,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
||||
autoplay,
|
||||
interfaceConfig?.autostartVideo,
|
||||
uiConfig?.alwaysStartFromBeginning,
|
||||
uiConfig?.disableMobileMediaAutoRotateEnabled,
|
||||
_initialTimestamp,
|
||||
]);
|
||||
|
||||
|
||||
@@ -278,6 +278,12 @@ export const SettingsInterfacePanel: React.FC = () => {
|
||||
checked={ui.enableChromecast ?? undefined}
|
||||
onChange={(v) => saveUI({ enableChromecast: v })}
|
||||
/>
|
||||
<BooleanSetting
|
||||
id="disable-mobile-media-auto-rotate"
|
||||
headingID="config.ui.scene_player.options.disable_mobile_media_auto_rotate"
|
||||
checked={ui.disableMobileMediaAutoRotateEnabled ?? undefined}
|
||||
onChange={(v) => saveUI({ disableMobileMediaAutoRotateEnabled: v })}
|
||||
/>
|
||||
<BooleanSetting
|
||||
id="show-scrubber"
|
||||
headingID="config.ui.scene_player.options.show_scrubber"
|
||||
|
||||
Reference in New Issue
Block a user