Fix for panning by Michal Zeman, CAD Studio