fix overflow calc

This commit is contained in:
Rene Haas
2022-07-02 22:52:07 +02:00
parent 0f89a13489
commit 5bfd7e0068
@@ -79,8 +79,8 @@ const getOverflowAmount = (
};
return {
w: amount.w >= tollerance ? amount.w : 0,
h: amount.h >= tollerance ? amount.h : 0,
w: amount.w > tollerance ? amount.w : 0,
h: amount.h > tollerance ? amount.h : 0,
};
};