fix bug with minimap and dragging