map: better mouse handling