ionic-team / cordova-plugin-ionic-webview

Web View plugin for Cordova, specialized for Ionic apps.
Apache License 2.0
484 stars 392 forks source link

Scrolling / menu issues with WKWebView #21

Open lincolnthree opened 6 years ago

lincolnthree commented 6 years ago

https://www.youtube.com/watch?v=K_vBD6IJdpE

List of issues visible in this video, with time references:

0:05 - While the menu is open, the content view can be scrolled, then once the scroll has completed (0:11), it locks down and can no longer be scrolled.

0:12 - Some odd behavior with swipe gesture. The menu doesn't initially follow the swipe (presumably because the user was swiping up, first). It then, however, recognizes the swipe after the user has released the screen, and snaps closed.

0:20 - The content view can be scrolled, again. Once scrolled, it stops being scrollable (as it should be from the start (0:22))

WKWebView is definitely an improvement for this behavior, since prior to upgrading, the content view was always scrollable while the menu was open, and now it's just sometimes scrollable, but still not quite right.

Thoughts? Thanks.

kabus202 commented 6 years ago

@lincolnthree did you find a solution for this problem? I have exactly the same issue here.

sinedied commented 6 years ago

Same here, scrolling is completely locked when using Bootstrap. Any ideas?

lincolnthree commented 6 years ago

No solution yet. Just living with it :(

laurentgilly commented 6 years ago

I don't use bootstrap but my main content is also locked when I use the WKWebView :-/

sinedied commented 6 years ago

@manucorporat Any news or workaround on this? For my case, with the standard UIWebView there is no scrolling issue.

sinedied commented 6 years ago

As pointed in this comment, adding the <preference name="ScrollEnabled" value="true" /> preference to the iOS platform settings fix the scrolling issue for Bootstrap.

Is there any documentation on what this setting is supposed to do? I could not find any either here or in the Cordova docs.

Mapiac commented 4 years ago

@sinedied I think it essentially disables threaded scroll, thus putting scroll onto the main thread.