1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Revert "Disable scrolling in player"

This reverts commit 1a36d96f48.

Reverted due to it disabling pull to refresh on mobile :(
This commit is contained in:
Ivan Evans 2024-08-26 22:44:52 -06:00
parent 1e4ec0cbb2
commit 3543ec093f
2 changed files with 0 additions and 15 deletions

View file

@ -10,14 +10,6 @@ body {
font-size: 1.0248em; 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],
html[data-full] body { html[data-full] body {
overscroll-behavior-y: none; overscroll-behavior-y: none;

View file

@ -54,13 +54,6 @@ export function RealPlayerView() {
}); });
useEffect(() => { useEffect(() => {
reset(); 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]); }, [paramsData, reset]);
const metaChange = useCallback( const metaChange = useCallback(