-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ionicScrollDelegate.anchorScroll() does not work reliably #618
Comments
Issue 2 is fixed when using the setTimeout function on scroll-content in the scroll function: $scope.gotoDay = function(id){ Issue 1 remains:
|
Checking this out now, thanks for the research Coen. |
@CoenWarmer, could you paste this over your getPositionInParent: function(el, parentEl) {
return { left: el.offsetLeft, top: el.offsetTop };
}, |
Before it, only cancelled scrollTop the first time the hash was set. Addresses #618
Yup, that works! Thank you! |
this really works for me : http://www.saintsatplay.com/blog/2015/02/scrolling-to-a-page-anchor-in-ionic-framework#.VcvVmPmqqko |
I can get the scrolling to work well enough, but it isn't consistently scrolling to the same spot. Sometimes it scrolls a little higher and then a second click will scroll to the right spot. A third will go to the higher location again. My anchors are nested, which I'm guessing is a contributing factor. document.getElementById(eId).scrollIntoView(); works consistently. Any thoughts? |
Previous issue: #508
The anchorscroll functionality does not work reliably. Check out this Plunkr:
http://plnkr.co/edit/4bPK01zF0e0euJetZbxD?p=preview
I see two issues:
In the Plunkr I have wrapped div id="day2" into another div. Jumping to that link does not work.
The text was updated successfully, but these errors were encountered: