Moodle for mobile

Scroll back to content after triggering a refresh

 
Picture of Mark Johnson
Scroll back to content after triggering a refresh
Core developersParticularly helpful MoodlersPlugin developers

MOBILE-2452 makes completion checkboxes scroll back into view after being toggled and triggering a page refresh.  Is it possible to do something like this for your own elements? E.g. if you use core-site-plugins-call-ws with refreshOnSuccess or core-site-plugins-call-ws-new-content on a button, could you make it scroll back to the button after refresh?

 
Average of ratings: -
Picture of Dani Palou
Re: Scroll back to content after triggering a refresh
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Mark,

IMO right now the only way to achieve this would be with custom Javascript, the problem is that those directives don't allow performing a custom action when the WS call is done. 

I opened an issue to fix this second thing:

https://tracker.moodle.org/browse/MOBILE-2528

Once I have it done I'll check if it's easy to scroll to the element and evaluate if we need to add a function to do so.

Cheers,

Dani

 
Average of ratings: -