mac81/pure-drawer

Keep drawer toggle from snapping back to the top of the page?

raddevon opened this issue · 5 comments

When the drawer toggle is clicked, the page position immediately snaps back to the top. Is it possible to retain the user's current scroll position when the drawer is toggled?

Hi

It should keep scroll position. Might be that your missing something in the css? Or maybe you have an older version? I fixed the jump to top issue in version 0.7

If you have your 'project' online I will gladly take a look and see if I get fix the issue.

I could be missing something. I'm building a tumblr theme, so I copied the minified CSS and placed it inline in the template. I recently removed all the effects I'm not using, but I was having the problem before I did that.

I'd love it if you don't mind taking a look: http://raddevon.tumblr.com/

Thanks for your time!

You have to set:

html,
body {
height: 100%;
}

I managed to replicate the issue in my code as well, so I will update the css and push a fix shortly. Thank you for pointing the issue out

No problem. Thank you for checking into it.

Really liking pure-drawer. Thanks for building it!

Thank you!
And thank you for using it :-)

I will close this issue now. If you have any further issues please don't hesitate to report it.