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 df88b1e commit 97da8b7Copy full SHA for 97da8b7
src/ResizeSensor.js
@@ -305,7 +305,7 @@
305
306
this.detach = function(ev) {
307
// clean up the unfinished animation frame to prevent a potential endless requestAnimationFrame of reset
308
- if (!lastAnimationFrameForInvisibleCheck) {
+ if (lastAnimationFrameForInvisibleCheck) {
309
cancelAnimationFrame(lastAnimationFrameForInvisibleCheck);
310
lastAnimationFrameForInvisibleCheck = 0;
311
}
0 commit comments