Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Fix while loop condition in getScreenBox
Browse files Browse the repository at this point in the history
Co-authored-by: mbskinner <matthew@signalfx.com>
  • Loading branch information
caged and mbskinner committed May 4, 2018
1 parent e990d9b commit 6e2098e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default function() {
function getScreenBBox(targetShape) {
var targetel = target || targetShape

while (targetel.getScreenCTM == null && targetel.parentNode == null) {
while (targetel.getScreenCTM == null && targetel.parentNode != null) {
targetel = targetel.parentNode
}

Expand Down

0 comments on commit 6e2098e

Please sign in to comment.