fix dragging in scaled and panned canvas