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

Commit 6e2098e

Browse files
cagedmbskinner
andcommitted
Fix while loop condition in getScreenBox
Co-authored-by: mbskinner <[email protected]>
1 parent e990d9b commit 6e2098e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export default function() {
286286
function getScreenBBox(targetShape) {
287287
var targetel = target || targetShape
288288

289-
while (targetel.getScreenCTM == null && targetel.parentNode == null) {
289+
while (targetel.getScreenCTM == null && targetel.parentNode != null) {
290290
targetel = targetel.parentNode
291291
}
292292

0 commit comments

Comments
 (0)