chore(casting): remove DEBUG_TOUCH_ZONES overlay

This commit is contained in:
Uruk
2026-05-22 14:24:35 +02:00
parent a9d8f753d4
commit abe4981126
3 changed files with 0 additions and 39 deletions

View File

@@ -12,7 +12,6 @@ import { useTranslation } from "react-i18next";
import { Pressable, View } from "react-native";
import type { RemoteMediaClient } from "react-native-google-cast";
import { Text } from "@/components/common/Text";
import { DEBUG_TOUCH_ZONES } from "@/utils/casting/debug";
interface CastPlayerEpisodeControlsProps {
/** Bottom safe-area inset, used to offset the fixed control row. */
@@ -171,21 +170,6 @@ export function CastPlayerEpisodeControls({
</Text>
)}
</Pressable>
{__DEV__ && DEBUG_TOUCH_ZONES && (
<View
pointerEvents='none'
style={{
position: "absolute",
top: 0,
bottom: 0,
left: 0,
right: 0,
borderWidth: 1,
borderColor: "lime",
}}
/>
)}
</View>
);
}

View File

@@ -12,7 +12,6 @@ import type { SharedValue } from "react-native-reanimated";
import { CastTrickplayBubble } from "@/components/casting/player/CastTrickplayBubble";
import { ChapterTicks } from "@/components/chapters/ChapterTicks";
import type { useTrickplay } from "@/hooks/useTrickplay";
import { DEBUG_TOUCH_ZONES } from "@/utils/casting/debug";
import { calculateEndingTime, formatTime } from "@/utils/casting/helpers";
import { msToTicks, ticksToSeconds } from "@/utils/time";
@@ -136,20 +135,6 @@ export function CastPlayerProgressBar({
durationMs={duration * 1000}
height={4}
/>
{__DEV__ && DEBUG_TOUCH_ZONES && (
<View
pointerEvents='none'
style={{
position: "absolute",
top: -12,
bottom: -12,
left: -10,
right: -10,
borderWidth: 1,
borderColor: "red",
}}
/>
)}
</View>
{/* Time display */}

View File

@@ -1,8 +0,0 @@
/**
* Developer flag for visualising touch zones in the casting player.
*
* Flip to `true` to draw outlines over the slider hit area and the control row,
* run the app, hand-calibrate `panHitSlop`, then flip back to `false`.
* Every use is gated with `__DEV__` so it can never render in a release build.
*/
export const DEBUG_TOUCH_ZONES = false;