fix firefox behaviour when dragging pointer from the tray to the map