I have a RG and when the user clicks, I use the Scroll To Entry option. It works, fine.
When the user is done, I’d like to scroll the RG back to the original position. Is there any trick to either scroll back to the original position or at least to find out how many pixels the Scroll To Entry moved the display?
Hi there, @ken1… you are able to get the current page scrolling position via an operator, so I’m thinking you could save that position to a custom state before you scroll away from it, and then you could go back to it by using the toolbox plugin and some javascript (I do that in one of my apps).
Ah. I overlooked the last part. I think I need a break!
Thanks. I’ll give it a try.
UPDATE: That worked perfectly! Thank you.
Can I use JS to animate the scroll or do I need to use CSS? I have the open scroll animated so it would be great to match that with the return animation.