EVGA

Scroll to Top broken on Chrome 61

Author
Valtrius Malleus
iCX Member
  • Total Posts : 290
  • Reward points : 0
  • Joined: 2017/03/16 19:46:33
  • Status: offline
  • Ribbons : 2
2017/09/20 00:38:51 (permalink)
Couldn't really find a suitable forum for forum issues but...
 
The scroll to top button next to the forum when not at the top of the page doesn't work when updating to Chrome 61. The button is displayed but clicking it does nothing. Looks like the scrollTo plugin got borked by it.
 
I made this as a quick alternative.
$(function(){
   $('.backtotop').off('click').on('click', function(){
      $('html, body').animate({scrollTop:0}, 200);
   });
   var hash = location.hash;
   if(!hash) return;
   var $id = $("#msg"+hash.replace(/\#/,""))
   if(!$id.length) return;
   $('html, body').animate({scrollTop:$id.position().top}, 200);
});
post edited by Valtrius Malleus - 2017/09/26 16:15:44
#1

1 Reply Related Threads

    Sajin
    EVGA Forum Moderator
    • Total Posts : 49168
    • Reward points : 0
    • Joined: 2010/06/07 21:11:51
    • Location: Texas, USA.
    • Status: offline
    • Ribbons : 199
    Re: Scroll to Top broken on Chrome 61 2017/09/20 11:49:37 (permalink)
    Button doesn't work for me either.
     
    Moving thread to the general discussion sub-section.
    #2
    Jump to:
  • Back to Mobile