mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 05:42:26 +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;
|
isScrolling = true;
|
||||||
|
|
||||||
const carousel = carouselRefs.current[categorySlug];
|
const carousel = carouselRefs.current[categorySlug];
|
||||||
if (carousel) {
|
if (carousel && !e.deltaX) {
|
||||||
const movieElements = carousel.getElementsByTagName("a");
|
const movieElements = carousel.getElementsByTagName("a");
|
||||||
if (movieElements.length > 0) {
|
if (movieElements.length > 0) {
|
||||||
const posterWidth = movieElements[0].offsetWidth;
|
const posterWidth = movieElements[0].offsetWidth;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue