JoshDSommer / nativescript-slides

A NativeScript plugin that is for Intro Tutorials, Image Carousels or any other slide functionality
Other
70 stars 32 forks source link

angular: calling `location.back()` causes slides to go back 1 slide #50

Closed NathanWalker closed 8 years ago

NathanWalker commented 8 years ago

Not sure if this is expected or not but I've noticed that if you display the slides on a navigated route (meaning you call this._router.navigate(['/slides']) for instance), then swipe through the slides, when you call location.back() it causes the slides to go back 1 slide (in addition to navigating the route back).

This is interesting behavior and not sure if there's something here that is responding to nav changes somehow?

JoshDSommer commented 8 years ago

@NathanWalker that's really odd. There isn't anything that should do that... I had thought about implementing logic so if the android back button was pressed it would go back one slide though

NathanWalker commented 8 years ago

It is rather odd; I was looking through the code and nothing jumps out but I'll try to investigate deeper soon. Strange one.

JoshDSommer commented 8 years ago

I'm going to close this since it's expected behaviour with navigating in ios, and is more of an illusion. thanks man!