- Issue created by @gulfam_drupal
Scroll the page
click on the back to top button
error will be come in console
frame is not defined
I removed the frame var like this
- frame = requestAnimationFrame(animateScroll);
+ requestAnimationFrame(animateScroll);
- window.cancelAnimationFrame(frame);
+ // Cancel the animation on the event.
+ cancelAnimation();
Q
Active
3.0
Code