Skip to content

Commit

Permalink
#19: Fix infinite setState loop in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
slmgc committed Mar 6, 2018
1 parent b713fc9 commit d31005e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export default ({Component, createElement}) =>

return {
content, at,
top: top + targetTop - containerTop,
left: left + targetLeft - containerLeft
top: (top + targetTop - containerTop)|0,
left: (left + targetLeft - containerLeft)|0
}
}

Expand Down

0 comments on commit d31005e

Please sign in to comment.