// If the current document is not zoom and pan anabled then
// just quit
if(!document.isZoomAndPanAnable()) return;
// 1. Get the drag point
point = (TinyPoint)theEvent.data;
SVGSVGElem root = (SVGSVGElem)document.root;
// 2. Get the current scale
int scale = root.getCurrentScale();
// 3. Calculate the new current view
view = canvas.raster.view;
view.x += TinyUtil.div(point.x<<TinyUtil.FIX_BITS,scale);
view.y += TinyUtil.div(point.y<<TinyUtil.FIX_BITS,scale);
// 5. Set the camera transform