Skip to content

Commit 066abae

Browse files
fix getFullTransformMatrix in shadow DOM
1 parent 113f5c5 commit 066abae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/dom.js

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ function getElementAndAncestors(element) {
134134
while(isTransformableElement(element)) {
135135
allElements.push(element);
136136
element = element.parentNode;
137+
if(typeof ShadowRoot === 'function' && typeof element instanceof ShadowRoot) {
138+
element = element.host;
139+
}
137140
}
138141
return allElements;
139142
}

0 commit comments

Comments
 (0)