What are the steps required to reproduce the bug?
Open a "dialog" which contains an iframe which overflows the height of the dialog using iOS 8+ Safari (replicated in iOS 10 on an iPad Pro).
This issue was originally noticed when using Entity Browser (see https://www.drupal.org/node/2781873). This uses an iframe inside a dialog which, on iOS, is not scrollable. You therefore can't view all the items in the browser or use the submit buttons at the bottom.
What behavior were you expecting? To be able to scroll the dialog iframe as you would on a desktop device.
What happened instead? Could not scroll the iFrame (although if you select the very edge of the dialog you can scroll), whole page attempts to scroll instead.
---
Adding -webkit-overflow-scrolling: touch;
to the dialog content fixes this issue. It also enables iOS's momentum scrolling for that element (patch to follow).
Comment | File | Size | Author |
---|---|---|---|
#23 | 2908476-23.patch | 303 bytes | mac501 |
#13 | 2908476-13.patch | 427 bytes | vacho |
#10 | 2908476-10.patch | 427 bytes | johnchque |
#7 | 2908476-7.patch | 421 bytes | marcoscano |
#2 | seven-ios-dialog-iframe-scrolling-2908476-2.patch | 424 bytes | a.hover |
Comments
Comment #2
a.hover CreditAttribution: a.hover at CTI Digital commentedHere is the patch for this CSS change.
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
a.hover CreditAttribution: a.hover at CTI Digital commented@cilifen Hmm, I am not sure this does fix the issue after all - I was using an iPad emulator alongside Safari inspector and at first it seems to be working, but it turns out the elmulator was being glitchy.
Comment #5
cilefen CreditAttribution: cilefen commentedFair enough! The "needs review" is just housekeeping so we get patches tested ASAP. Carry on!
Comment #7
marcoscanoJust a re-roll, once the previous patch doesn't seem to apply.
I can confirm the bug is reproducible and the patch seems to solve it for me. I've successfully tested it with mobile iOS (emulator) on the following devices:
- iPhone X (11)
- iPhone 8 Plus (11)
- iPhone 7 (10)
- iPad 5th (11)
Comment #9
paulpopus CreditAttribution: paulpopus as a volunteer commentedTested this patch on the iPad Pro iOS 12 but it doesn't fix the scrolling issue when using the actual device. Testing on BrowserStack works fine though.
Comment #10
johnchqueRebasing on 8.7.x :)
@paulpopus, when a patch is not fixing a problem the correct status for the issue is Needs work.
Comment #11
alonaoneill CreditAttribution: alonaoneill at Hook 42 commentedComment #12
vacho CreditAttribution: vacho at Skilld commentedComment #13
vacho CreditAttribution: vacho at Skilld commentedPatch rerolled
Comment #14
yogeshmpawarSetting back to Needs Review & Triggering bots.
Comment #15
volkerk CreditAttribution: volkerk at Thunder commented+
Comment #22
longwaveThe Seven theme has been removed from Drupal 10 core. This issue only appears to affect Seven, so I am moving this to the contributed Seven project.
Comment #23
mac501 CreditAttribution: mac501 at NDP commented