Important: We have released an extension plugin so you don't have to add any code to your child theme for this.
/**
* Disable hash update when clicking local scroll links
*
* @link 1.6.0
*
*/
function myprefix_disable_local_scroll_hash_update( $array ) {
$array['localScrollUpdateHash'] = false;
return $array;
}
add_filter( 'wpex_localize_array', 'myprefix_disable_local_scroll_hash_update' );