Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Detect if swipe back on page was canceled

$
0
0

@media4learning wrote:

Hey everyone! I have found an issue and I can’t find any info about it.

I have an Ionic 3 app. On iOS, when I start swiping back to pop the page, the previous page’s ionViewWillEnter function is triggered. But if I cancel the swipe back before it’s completed (so the current page remains), the methods ionViewWillEnter and ionViewDidEnter for the current page are not triggered.

The problem I have is that every page changes the color of the tabs on ionViewWillEnter. So swiping back and then canceling that, I have the tab color of the previous page for the current page that I didn’t finish swiping back on.

A bit tricky to explain - hopefully I have nailed it. If anyone has some thoughts on how to work around this I would appreciate it!

Cheers

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>