Can't scroll past a horizontal scrolling area on touch devices
See original GitHub issueWe have a number of areas on our sites eg. tables of data that need to be horizontally scrollable. The problem we are seeing is that when using the plugin it stops the user being able to scroll down the page unless they touch outside of the horizontally scrolling area.
I have been able to fix this for some touch devices by using the following css
.mCustomScrollBox.mCSB_horizontal { touch-action: pan-y pinch-zoom; }
Unfortunately this does not work for iOS Safari.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
How to fix horizontal scroll on iOS (Mobile) - Stack Overflow
Load the page; Try to scroll in the scrolling area (nothing happens); Drag at either edge of the screen in Safari (you will...
Read more >How To Fix Horizontal Scrollbar on Mobile When Using ...
The horizontal scrollbar issue on mobile devices can be fixed by setting overflow to hidden. You can do this by using the Elementor...
Read more >overscroll-behavior - CSS: Cascading Style Sheets | MDN
The overscroll-behavior CSS property sets what a browser does when reaching the boundary of a scrolling area.
Read more >Fix unwanted horizontal scroll and whitespace with Overflow
Sometimes elements on a page can exist outside the viewport, and an unintended side effect can be horizontal or sideways scrolling that ...
Read more >How to prevent overflow scrolling in CSS - LogRocket Blog
Have you ever seen a horizontal scroll bar on your screen because your web content did not fit? Have you opened a modal...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@PaperCoder
Have managed to procure an iPhone in the office and tested on our test environment and changing the CSS to
Seems to ensure that the iPhone works, Windows Phone is also happier when touch-action is set too as without it at all, it got a bit sluggish when scrolling horizontally. We’ll need to perform our full browser testing now but its looking hopeful that we have got a solution.
Thats very odd. Will have to try that Monday when I have access to the devices again.