Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Ionic scroll delegate: scroll position resets after navbar onclick

$
0
0

@hofshteyn wrote:

Hello, Ionic community!

I've got a problem with Ionic scroll directive. There is a link at top-navbar to open a modal window, before this I choose scroll position of my Image and handle it. But when I'm clicking at navbar (and any element on it) - my positions goes to 0.

I watched it with $ionicScrollDelegate.$getByHandle('name_scroll_element').getScrollPosition(); and positions params are become { left: 0, left: 0 } . Zoom keeps value as I set.

Here is an example at codepen:

Just scroll an element and click the top navbar. Is is a correct behavior? And how can I avoid it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



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