I have a Capacitor project using Vue and Vue Router, with swipe gestures enabled I am unsure if this issue is coming in from the Vue Router or Capacitor.
The gestures are enabled with a plugin using this line
bridge.getWebView()?.allowsBackForwardNavigationGestures = true;
If I go one page, to the next, then swipe back. The previous page appears in the view and slides in as expected.
However, if I scroll even a few pixels before moving to the next page. When swiping back, the previous page appears white with no content. The current page slides out as expected Its only once the slide transition is finished that the previous page pops onto the screen
If I remove the scrollBehaviour function in my router it works correctly
scrollBehavior (to, from, savedPosition) {
This function can be empty, or return various positions, it all causes the slide on the non active page to be white.
Without scrollBehavior enabled, on swiping back I do see the previous page at the scroll position it was left at. But, when the slide animation finishes the page then jumps to the top.
Does anyone have any thoughts as to how this can be fixed?
