aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/view-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/3D/view-utils.js')
-rwxr-xr-xjs/helper-classes/3D/view-utils.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js
index 5dc099ee..22446403 100755
--- a/js/helper-classes/3D/view-utils.js
+++ b/js/helper-classes/3D/view-utils.js
@@ -354,16 +354,13 @@ exports.ViewUtils = Montage.create(Component, {
354 354
355 // transform the bounds up the tree 355 // transform the bounds up the tree
356 var child = elt; 356 var child = elt;
357 var parent = elt.offsetParent;
358 while ( child ) 357 while ( child )
359 { 358 {
360 pt = this.childToParent( pt, child ); 359 pt = this.childToParent( pt, child );
361 360
362// if (parent === this._rootElement) break;
363 if (child === this._stageElement) break; 361 if (child === this._stageElement) break;
364 362
365 child = parent; 363 child = child.offsetParent;
366 parent = parent.offsetParent;
367 } 364 }
368 365
369 ///////////////////////////////////////////////////////// 366 /////////////////////////////////////////////////////////