From b9058e5b1ea1b86daea03ff469313f1a68e13a64 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 12 Nov 2009 20:08:04 +0000 Subject: [PATCH] Fixed selection box positioning when dragging while zoomed git-svn-id: http://svg-edit.googlecode.com/svn/trunk@936 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 85e0576a..e4b7cdfd 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -448,6 +448,11 @@ function BatchCommand(text) { } } + // This should probably be handled somewhere else, but for now + // it keeps the selection box correctly positioned when zoomed + m.e *= current_zoom; + m.f *= current_zoom; + // apply the transforms topleft = transformPoint( topleft.x, topleft.y, m ); botright = transformPoint( botright.x, botright.y, m );