mirror of https://github.com/sussy-code/smov.git
try fixing overflow issue on mobile when users scroll the carosel
This commit is contained in:
parent
17d055ce4f
commit
d370a9ea7c
|
@ -235,6 +235,13 @@ export function Discover() {
|
||||||
setIsHovered(false);
|
setIsHovered(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.addEventListener("mouseleave", handleMouseLeave);
|
||||||
|
return () => {
|
||||||
|
window.removeEventListener("mouseleave", handleMouseLeave);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
function renderMovies(medias: Media[], category: string, isTVShow = false) {
|
function renderMovies(medias: Media[], category: string, isTVShow = false) {
|
||||||
const categorySlug = `${category.toLowerCase().replace(/ /g, "-")}${Math.random()}`; // Convert the category to a slug
|
const categorySlug = `${category.toLowerCase().replace(/ /g, "-")}${Math.random()}`; // Convert the category to a slug
|
||||||
const displayCategory =
|
const displayCategory =
|
||||||
|
|
Loading…
Reference in New Issue