mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
try fixing overflow issue on mobile when users scroll the carosel
This commit is contained in:
parent
17d055ce4f
commit
d370a9ea7c
1 changed files with 7 additions and 0 deletions
|
|
@ -235,6 +235,13 @@ export function Discover() {
|
|||
setIsHovered(false);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener("mouseleave", handleMouseLeave);
|
||||
return () => {
|
||||
window.removeEventListener("mouseleave", handleMouseLeave);
|
||||
};
|
||||
}, []);
|
||||
|
||||
function renderMovies(medias: Media[], category: string, isTVShow = false) {
|
||||
const categorySlug = `${category.toLowerCase().replace(/ /g, "-")}${Math.random()}`; // Convert the category to a slug
|
||||
const displayCategory =
|
||||
|
|
|
|||
Loading…
Reference in a new issue