fix coord transport for the bitmap sprites
[potlatch2.git] / net / systemeD / potlatch2 / EditController.as
index fa903c62295f4d717380b477757a3ee9c5a01a08..6e83229bd5f29f8dbe8a1a5c1ccc171e5c383abb 100644 (file)
@@ -70,6 +70,10 @@ package net.systemeD.potlatch2 {
             //if ( event.type == MouseEvent.MOUSE_DOWN )
             event.stopPropagation();
                 
+            var mapLoc:Point = map.globalToLocal(new Point(event.stageX, event.stageY));
+            event.localX = mapLoc.x;
+            event.localY = mapLoc.y;
+
             var newState:ControllerState = state.processMouseEvent(event, entity);
             setState(newState);
         }