From 6e2098e545bb8c50fb90578a5659dec665a1c2ca Mon Sep 17 00:00:00 2001 From: Caged Date: Fri, 4 May 2018 07:06:50 -0700 Subject: [PATCH] Fix while loop condition in getScreenBox Co-authored-by: mbskinner --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 66c1e3a..91001c7 100644 --- a/index.js +++ b/index.js @@ -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 }