- Issue created by @mrdrill
- πͺπΈSpain bolecha
I observe the same effect, but on all pages.
Drupal 10.0.7
- π·πΊRussia Psi-fact0r
Same thing!
Fixed it by changing some values in /js/back_to_top.js.
String 51:
scrollTo(0, 1200);
changed to:
scrollTo(0, 100);
Works fine for me now.
- First commit to issue fork.
- Merge request !12Issue #3338303: Stutters and causes slow load times on pages that use views β (Closed) created by IsabelSuarez
- Status changed to Needs review
11 months ago 4:54pm 13 December 2023 - πͺπΈSpain IsabelSuarez
`window.scrollTo({ top: 0, behavior: 'smooth' });` is preferred because it adds a smooth and animated scroll, whereas `scrollTo(0, 1200);` simply scrolls instantly without a smooth effect. The former provides a more pleasant user experience.
- πΈπͺSweden acke
`window.scrollTo({ top: 0, behavior: 'smooth' });` don't work because it uses jquery.ui, Back To Top refactored the smooth scroll effect in js:
easeOutQuart = function (t, b, c, d) { t /= d; t--; return -c * (t * t * t * t - 1) + b; },
But it's sensible to add a speed parameter so webmasters can adjust the speed after preference and desired performance.
- πΈπͺSweden acke
Fixed in 3.0.x-dev with new speed parameter and going into 3.0.1.
Automatically closed - issue fixed for 2 weeks with no activity.