Skip to content

Commit

Permalink
Merge pull request #174 from wwayne/transform
Browse files Browse the repository at this point in the history
Factor transform in css into position calculation #152
  • Loading branch information
wwayne authored Aug 4, 2016
2 parents f763480 + 1b4fd38 commit 0d5a791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const calculateOffset = (offset) => {
const getParent = (currentTarget) => {
let currentParent = currentTarget
while (currentParent) {
if (currentParent.style.transform.length > 0) break
if (window.getComputedStyle(currentParent).getPropertyValue('transform') !== 'none') break
currentParent = currentParent.parentElement
}

Expand Down

0 comments on commit 0d5a791

Please sign in to comment.