void OnDragging(Point pos) { var v = m_oldDragPos - pos; m_oldDragPos = pos; var tileOffset = v / this.TileSize; this.ScreenCenterPos += new DoubleVector3(tileOffset.X, tileOffset.Y, 0); }