Anand From Pie.host
Anand From Pie.host

Reputation: 1233

Horizontal scroll on UC browser not working due to its Swipe Feature

I'm stuck with this problem since last few days, I have a website that's a Single Page Application , built with Angular.

There is a section in the website where I have implemented horizontal scrolling of the divs (carousel type view), that works well on other browser.

However horizontal scrolling fails on UC because it has a built-in feature for swipe over the screen.

Any Idea how can I disable it using JavaScript?

Note : If I go to Settings > Browser Settings > Disable swipe feature, the horizontal works fine.

Upvotes: 2

Views: 737

Answers (1)

Junaid Qureshi
Junaid Qureshi

Reputation: 314

Please check if the container has the following property set when the page loads (not set by JS on some touch/click event)

overflow: scroll;

I had the exact problem, I had overflow set to hidden and I was enabling the scroll by a "touch" event. That works well on other browsers but certainly not with UC.

Upvotes: 2

Related Questions