mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-25 16:26:54 +01:00
Fixed bugs for skip intro button still being able to be clicked once it is gone past the time frame
This commit is contained in:
@@ -14,10 +14,11 @@ const BrightnessSlider = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchInitialBrightness = async () => {
|
const fetchInitialBrightness = async () => {
|
||||||
const initialBrightness = await Brightness.getBrightnessAsync();
|
const initialBrightness = await Brightness.getBrightnessAsync();
|
||||||
|
console.log("initialBrightness", initialBrightness);
|
||||||
brightness.value = initialBrightness * 100;
|
brightness.value = initialBrightness * 100;
|
||||||
};
|
};
|
||||||
fetchInitialBrightness();
|
fetchInitialBrightness();
|
||||||
}, [brightness]);
|
}, []);
|
||||||
|
|
||||||
const handleValueChange = async (value: number) => {
|
const handleValueChange = async (value: number) => {
|
||||||
brightness.value = value;
|
brightness.value = value;
|
||||||
|
|||||||
@@ -344,9 +344,10 @@ export const Controls: React.FC<Props> = ({
|
|||||||
{
|
{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
right: insets.right,
|
right: insets.right,
|
||||||
bottom: insets.bottom + 50,
|
bottom: insets.bottom + 55,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
pointerEvents={showSkipButton ? "auto" : "none"}
|
||||||
className={`z-10 p-4
|
className={`z-10 p-4
|
||||||
${showSkipButton ? "opacity-100" : "opacity-0"}
|
${showSkipButton ? "opacity-100" : "opacity-0"}
|
||||||
`}
|
`}
|
||||||
@@ -561,10 +562,15 @@ export const Controls: React.FC<Props> = ({
|
|||||||
opacity: showControls ? 1 : 0,
|
opacity: showControls ? 1 : 0,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
pointerEvents={showControls ? "auto" : "none"}
|
pointerEvents={showControls ? "box-none" : "none"}
|
||||||
className={`flex flex-col p-4`}
|
className={`flex flex-col p-4`}
|
||||||
>
|
>
|
||||||
<View className="shrink flex flex-col justify-center h-full mb-2">
|
<View
|
||||||
|
className="shrink flex flex-col justify-center h-full mb-2"
|
||||||
|
style={{
|
||||||
|
alignSelf: "flex-start",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Text className="font-bold">{item?.Name}</Text>
|
<Text className="font-bold">{item?.Name}</Text>
|
||||||
{item?.Type === "Episode" && (
|
{item?.Type === "Episode" && (
|
||||||
<Text className="opacity-50">{item.SeriesName}</Text>
|
<Text className="opacity-50">{item.SeriesName}</Text>
|
||||||
@@ -577,7 +583,7 @@ export const Controls: React.FC<Props> = ({
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
className={`flex flex-col-reverse py-4 pb-2 px-4 rounded-2xl items-center bg-neutral-800`}
|
className={`flex flex-col-reverse py-4 pb-1 px-4 rounded-lg items-center bg-neutral-800`}
|
||||||
>
|
>
|
||||||
<View className={`flex flex-col w-full shrink`}>
|
<View className={`flex flex-col w-full shrink`}>
|
||||||
<Slider
|
<Slider
|
||||||
|
|||||||
Reference in New Issue
Block a user