Improve scroll calculation
🐛 Bugfixes
- The calculations were too complicated for
threshold="center"andthreshold="bottom", and were simplified. In the process, a bug was fixed in calculation (on longer screens,centerwasn’t correct).
🐸 Minor changes
- The final firing was reduced from
500msto200ms, resulting in more responsive recalc. In the future, this should be investigated a bit further to find out exactly why the final frame doesn’t fire.