Fix wrong ground detection during map scrolling (fix #317).