Closed softvision-oana-arbuzov closed 5 years ago
Confirmed, I can reproduce this issue using Firefox mobile 56. But on Firefox 56 responsive mode, if I disable touch simulation, I can scroll. In the ul element:
<ul class="rn-carousel-indicator custom-indicator" ng-hide="searchactive">
This element only listen to mouse up/down/move event, so I think it's why not work on Firefox. Maybe Chrome also convert mouse event to touch event?
This is an angular web site. And as @MDTsai said:
We had a number of issues lately in multiple issues where even when ontouchstart is not defined the scrolling is working on Chrome but not on firefox.
@miketaylr do you think we should explore this. Maybe a reduced test case would help.
I remember @patrickhlauke doing tests. https://patrickhlauke.github.io/touch/tests/results/
Had a quick look, and it seems that particular part of the page doesn't rely on touch events, but just on that menu bar being a scrollable overflow:auto
component. Something is preventing the native scrolling of overflowed components to work properly it seems.
oh wait. Sorry @patrickhlauke I just realized.
The menu item is nested in a ul
element:
<ul class="rn-carousel-indicator custom-indicator" ng-hide="searchactive">
<!-- cut -->
</ul>
with the following CSS.
.custom-indicator {
width: 100%;
overflow: auto;
white-space: nowrap;
}
.custom-indicator {
width: 100%;
overflow: auto;
overflow: -moz-scrollbars-none;
-webkit-overflow-scrolling: touch;
white-space: nowrap;
z-index: 99;
}
it relies on -webkit-overflow-scrolling
and has a weird overflow: -moz-scrollbars-none;
which according to MDN on overflow would be an equivalent of hidden
Use overflow: hidden instead.
When we deactivate the overflow: -moz-scrollbars-none;
, we fall back on the overflow: auto
and the scrolling is working, which is what is happening on webkit
. The -webkit-overflow-scrolling
is just here for the momentum-based scrolling. If I put overflow: hidden
, the scrolling stops in Safari too.
Just remove overflow: -moz-scrollbars-none;
Pushing to needscontact.
see for #7652 for outreach effort.
created https://bugzilla.mozilla.org/show_bug.cgi?id=1481125 to track the overflow: -moz-scrollbars-none; issues
After retesting the issue I confirm that the issue has been fixed.
Tested with: Browser / Version: Firefox Nightly 68.1a1 (2019-08-13), Firefox Preview 1.2.0 (Build #12181645) Operating System: Huawei P10 (Android 8.0) - 1080 x 1920 pixels (~432 ppi pixel density)
URL: https://www.justdial.com/Bangalore/Q-Bar-Lounge-&-Terrace-Opp-Airtel-Office-Koramangala-7th-Block/080PXX80-XX80-160428141658-G4I5_BZDET/menu#/ Browser / Version: Firefox Mobile Nightly 56.0a1 (2017-06-21) Operating System: LG G5 (Android 7.0) - Resolution 1440 x 2560 pixels (~554 ppi pixel density) Problem type: Mobile site is not usable
Steps to Reproduce
Expected Behavior: Title bar is scrollable.
Actual Behavior: Nothing happens. Title bar is not scrollable.
Note:
Watchers: @softvision-sergiulogigan @softvision-oana-arbuzov
sv; country: in
From webcompat.com with ❤️