diff options
Diffstat (limited to 'js/tools/PanTool.js')
-rwxr-xr-x | js/tools/PanTool.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/PanTool.js b/js/tools/PanTool.js index 11345ad9..28e4c04d 100755 --- a/js/tools/PanTool.js +++ b/js/tools/PanTool.js | |||
@@ -102,7 +102,7 @@ exports.PanTool = Montage.create(toolBase, | |||
102 | { | 102 | { |
103 | // do one final mouse move to update the scrollbars | 103 | // do one final mouse move to update the scrollbars |
104 | this.mouseUp( event ); | 104 | this.mouseUp( event ); |
105 | 105 | ||
106 | this.application.ninja.stage.clearDrawingCanvas(); | 106 | this.application.ninja.stage.clearDrawingCanvas(); |
107 | this._hasDraw = false; | 107 | this._hasDraw = false; |
108 | this._isDrawing = false; | 108 | this._isDrawing = false; |
@@ -174,7 +174,7 @@ exports.PanTool = Montage.create(toolBase, | |||
174 | this.application.ninja.currentDocument.model.views.design.document.body.scrollLeft += delta; | 174 | this.application.ninja.currentDocument.model.views.design.document.body.scrollLeft += delta; |
175 | 175 | ||
176 | delta *= zoom; | 176 | delta *= zoom; |
177 | 177 | ||
178 | var uc = this.application.ninja.currentDocument.model.documentRoot; | 178 | var uc = this.application.ninja.currentDocument.model.documentRoot; |
179 | var ucMat = viewUtils.getMatrixFromElement(uc); | 179 | var ucMat = viewUtils.getMatrixFromElement(uc); |
180 | var offset = viewUtils.getElementOffset( uc ); | 180 | var offset = viewUtils.getElementOffset( uc ); |
@@ -231,7 +231,7 @@ exports.PanTool = Montage.create(toolBase, | |||
231 | this.doMouseDown( point ); | 231 | this.doMouseDown( point ); |
232 | } | 232 | } |
233 | }, | 233 | }, |
234 | 234 | ||
235 | 235 | ||
236 | doMouseDown: | 236 | doMouseDown: |
237 | { | 237 | { |
@@ -378,7 +378,7 @@ exports.PanTool = Montage.create(toolBase, | |||
378 | 378 | ||
379 | var wPt = MathUtils.transformAndDivideHomogeneousPoint( gPt, this._globalToUCWorld ); | 379 | var wPt = MathUtils.transformAndDivideHomogeneousPoint( gPt, this._globalToUCWorld ); |
380 | var delta = vecUtils.vecSubtract( 3, wPt, this._worldPt ); | 380 | var delta = vecUtils.vecSubtract( 3, wPt, this._worldPt ); |
381 | 381 | ||
382 | if (!this._altKeyDown) | 382 | if (!this._altKeyDown) |
383 | delta[2] = 0; | 383 | delta[2] = 0; |
384 | 384 | ||