We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0403aa7 commit 3b9071fCopy full SHA for 3b9071f
src/lib/dom.js
@@ -151,13 +151,15 @@ function isTransformableElement(element) {
151
}
152
153
function domRectsAreEqual(a, b) {
154
- return a && b
155
- && a.left === b.left
156
- && a.top === b.top
157
- && a.right === b.right
158
- && a.bottom === b.bottom
159
- && a.x === b.x
160
- && a.y === b.y;
+ return (
+ a && b &&
+ a.left === b.left &&
+ a.top === b.top &&
+ a.right === b.right &&
+ a.bottom === b.bottom &&
+ a.x === b.x &&
161
+ a.y === b.y
162
+ );
163
164
165
module.exports = {
0 commit comments