Scroll conflict on a WKWebview inside a UICollectionView
| Originator: | kennyLaPresse | ||
| Number: | rdar://27885537 | Date Originated: | 17-Aug-2016 09:48 AM |
| Status: | Open | Resolved: | NO |
| Product: | iOS | Product Version: | iOS 10 beta 6 |
| Classification: | Reproducible: | Always |
- Area:
WebKit
- Summary:
When a WKWebview is embedded in a UICollectionViewCell,
if your WKWebview contains a web gallery or any other view who have to handle some gesture, you'll have some weird behaviour will swiping on the web gallery.
- Steps to Reproduce:
Implement a UICollectionView with a certain number of cells,
add a WKWebView inside each cell of the UICollectionView,
load "http://www.apple.com/" in those WKWebview.
- Expected Results:
On iOS 9, iOS will consider the gesture of the WKWebview instead of the gesture of the UICollectionView and you will have to swipe outside of the gallery for swiping to the next cell of the UICollectionView.
- Actual Results:
On iOS 10, iOS struggle to choose which gesture prioritize. When you'll swipe inside the web gallery of the WKWebview, the webview and collectionView will began to scroll.
- Configuration:
iPad Mini Wifi, iPad 4 Wifi
- Example:
https://www.dropbox.com/s/7ivnj0aoq2ztnom/TestSwipeGesture.zip?dl=0
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!