Currently the scrollHeight is being obtained many times during the vertical collapse-in animation, causing the animation to be very laggy and jumpy in the latest version of Firefox and some versions of Chrome. In my test, getting the scrollHeight value in advance, solved the performance issue:
This is the current code in src/transitions.js (no changes are made):
Currently the scrollHeight is being obtained many times during the vertical collapse-in animation, causing the animation to be very laggy and jumpy in the latest version of Firefox and some versions of Chrome. In my test, getting the scrollHeight value in advance, solved the performance issue:
This is the current code in src/transitions.js (no changes are made):
This is my modified code:
The same can be done with scrollWidth.