From bba0e4939dd3a126ad598838cb68c444115a4210 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Fri, 30 May 2014 15:06:33 -0700 Subject: [PATCH] Fixed #1039 --- app/views/editor/level/thangs_tab_view.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/editor/level/thangs_tab_view.coffee b/app/views/editor/level/thangs_tab_view.coffee index 30c975a8e..fafbc0f88 100644 --- a/app/views/editor/level/thangs_tab_view.coffee +++ b/app/views/editor/level/thangs_tab_view.coffee @@ -194,7 +194,7 @@ module.exports = class ThangsTabView extends View return unless @selectedExtantThang and e.thang?.id is @selectedExtantThang?.id @surface.camera.dragDisabled = true {stageX, stageY} = e.originalEvent - wop = @surface.camera.canvasToWorld x: stageX, y: stageY + wop = @surface.camera.screenToWorld x: stageX, y: stageY wop.z = @selectedExtantThang.depth / 2 @adjustThangPos @selectedExtantSprite, @selectedExtantThang, wop [w, h] = [@surface.camera.canvasWidth, @surface.camera.canvasHeight] @@ -320,7 +320,7 @@ module.exports = class ThangsTabView extends View onSurfaceMouseMoved: (e) -> return unless @addThangSprite - wop = @surface.camera.canvasToWorld x: e.x, y: e.y + wop = @surface.camera.screenToWorld x: e.x, y: e.y wop.z = 0.5 @adjustThangPos @addThangSprite, @addThangSprite.thang, wop null