Summary: | Scroll containers with "-webkit-overflow-scrolling: touch" don't always show scrollbars on scroll | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ben Frain <contact> | ||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | simon.fraser, tahoon, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari 10 | ||||||
Hardware: | iPhone / iPad | ||||||
OS: | iOS 10.3 | ||||||
Attachments: |
|
Description
Ben Frain
2017-09-29 04:02:47 PDT
By "get the scroll handle" do you mean that they don't show scrollbars? Or that they don't handle the scroll (i.e. are not scrollable)? I mean the scroll but the handle doesn't always appear when scrolled. Created attachment 361714 [details]
Repro case: rapid changes to scrollable height
This bug is timing-dependent. The symptom is that the user can swipe up and down to scroll an element; however, the scrollbar does not appear. Workaround is to change "-webkit-overflow-scrolling" to "auto" and then back to "touch" after a delay.
Attachment provides two ways to reproduce this bug in iOS.
The first way is reliable:
1. Check the "Add items automatically" checkbox. This adds items continuously to a scrollable area.
2. Flick finger up and down to scroll the list. Note that the scrollbar disappears (or does not appear in the first place).
3. Uncheck checkbox. This stops adding items.
4. Flick finger up and down. The list scrolls but there is no scrollbar.
The second way is to add items manually. It is more difficult to reproduce.
1. Click "Add item" button quickly 4 to 5 times.
2. Lightly and quickly flick finger up on the scrollable area.
3. Area scrolls but scrollbar does not appear.
4. If cannot reproduce, click "Clear all" and try again.
I have also managed to reproduce this bug with static HTML (no dynamic DOM modifications), but very rarely.
|