From 3543ec093fbedcc90c0c30c36e5c80d82e63f8ca Mon Sep 17 00:00:00 2001 From: Ivan Evans <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:44:52 -0600 Subject: [PATCH] Revert "Disable scrolling in player" This reverts commit 1a36d96f4820725c86476f3c5eedb2a5d3ecd19e. Reverted due to it disabling pull to refresh on mobile :( --- src/assets/css/index.css | 8 -------- src/pages/PlayerView.tsx | 7 ------- 2 files changed, 15 deletions(-) diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 3d6dd5cf..d411a88d 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -10,14 +10,6 @@ body { font-size: 1.0248em; } -/* Disable scroll in player (PWA improvement) */ -html.no-scroll, -body.no-scroll { - overflow: hidden !important; - height: 100% !important; - touch-action: none !important; -} - html[data-full], html[data-full] body { overscroll-behavior-y: none; diff --git a/src/pages/PlayerView.tsx b/src/pages/PlayerView.tsx index 0656d5c3..5282d9b3 100644 --- a/src/pages/PlayerView.tsx +++ b/src/pages/PlayerView.tsx @@ -54,13 +54,6 @@ export function RealPlayerView() { }); useEffect(() => { reset(); - document.documentElement.classList.add("no-scroll"); - document.body.classList.add("no-scroll"); - - return () => { - document.documentElement.classList.remove("no-scroll"); - document.body.classList.remove("no-scroll"); - }; }, [paramsData, reset]); const metaChange = useCallback(