prevent the scrolling-into-elements problem of mapping libraries