Fix panning in hi-dpi