mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
Fix scrolling on discover page
This commit is contained in:
parent
95a5e1a932
commit
a45b045cd9
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ export function Discover() {
|
|||
isScrolling = true;
|
||||
|
||||
const carousel = carouselRefs.current[categorySlug];
|
||||
if (carousel) {
|
||||
if (carousel && !e.deltaX) {
|
||||
const movieElements = carousel.getElementsByTagName("a");
|
||||
if (movieElements.length > 0) {
|
||||
const posterWidth = movieElements[0].offsetWidth;
|
||||
|
|
|
|||
Loading…
Reference in a new issue