changeset 1358:23ea5ccda21a

move handle after positionShape event
author hertzhaft
date Sun, 15 Feb 2015 16:09:50 +0100
parents c176dca2b62b
children 647bd1686fa6
files webapp/src/main/webapp/jquery/jquery.digilib.vector.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.vector.js	Sun Feb 15 15:50:00 2015 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.vector.js	Sun Feb 15 16:09:50 2015 +0100
@@ -591,8 +591,8 @@
             var pt = geom.position(evt);
             pt.clipTo(imgRect);
             shape.properties.screenpos[vtx] = pt;
+            $(data).trigger('positionShape', shape);
             $handle.moveTo(pt);
-            $(data).trigger('positionShape', shape);
             if (isSupported(data, shapeType)) {
                 // update shape object and trigger drag event
                 var p = data.imgTrafo.invtransform(pt);