You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using MatchHeight and I notice on mobile ( tested on chrome, android) , I have an issue.
Warning in concole : "[Violation] Forced reflow while executing JavaScript "
a reflow is started every time I'm scrolling up and down in the page, and when the address bar is hide/display.
And there is a jump in the scroll every time it happen.
Do you have a solution for this ?
Thanks a lot
The text was updated successfully, but these errors were encountered:
The problem seems to come to the resize event.
Because on mobile, when address bar is hided or displayed, the resize event is call
I found a solution to avoid this :
let document_width = window.innerWidth; let document_height = window.height; window.addEventListener("resize", function () { // test pour éviter que le resize soit lancé au scroll sur mobile, lorsque l'adresse bar est cachée ou affichée if (document_width != window.innerWidth || document_height != window.height) { document_width = window.innerWidth; document_height = window.height; console.log('resize'); } });
The code must be added directly in the library, can you modify it ?
Hello,
I'm using MatchHeight and I notice on mobile ( tested on chrome, android) , I have an issue.
Warning in concole : "[Violation] Forced reflow while executing JavaScript "
a reflow is started every time I'm scrolling up and down in the page, and when the address bar is hide/display.
And there is a jump in the scroll every time it happen.
Do you have a solution for this ?
Thanks a lot
The text was updated successfully, but these errors were encountered: