mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-22 03:00:03 -06:00
srubber fixes
This commit is contained in:
@@ -8,6 +8,7 @@ import { XStack, YStack } from "tamagui";
|
||||
import { useSafeAreaFrame } from "react-native-safe-area-context";
|
||||
import { usePlayerContext } from "../../../player/provider";
|
||||
import { RunTimeSeconds } from "../../../components/Global/helpers/time-codes";
|
||||
import { UPDATE_INTERVAL } from "../../../player/config";
|
||||
|
||||
const scrubGesture = Gesture.Pan();
|
||||
|
||||
@@ -20,7 +21,7 @@ export default function Scrubber() : React.JSX.Element {
|
||||
|
||||
const { width } = useSafeAreaFrame();
|
||||
|
||||
const progress = useProgress();
|
||||
const progress = useProgress(UPDATE_INTERVAL);
|
||||
|
||||
const [seeking, setSeeking] = useState<boolean>(false);
|
||||
|
||||
@@ -45,7 +46,6 @@ export default function Scrubber() : React.JSX.Element {
|
||||
|
||||
return (
|
||||
<YStack>
|
||||
|
||||
<GestureDetector gesture={scrubGesture}>
|
||||
<HorizontalSlider
|
||||
value={position}
|
||||
|
||||
Reference in New Issue
Block a user