- 43 views
Use HOOK_ajaxy_render_alter()
In your module, just write this function replacing YOURMODULE by your module name:
function YOURMODULE_ajax_render_alter(array &$data) {
foreach ($data as $key => $value) {
if ($value['command'] === 'viewsScrollTop') {
unset ($data[$key]);
break;
}
}
}
It will prevent scrolling of any refreshview events. I found an issue on stackoverflow where you can precisely target which view you want, but this is way more general approach. Who needs automated scrolling anyway? I would write my own scrolling if I needed to, no?