File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ function scrollToTop() {
759759 scrollTop : 0
760760 } , 100 , "linear" ) ;
761761 } else {
762- $ ( document . body ) . animate ( {
762+ $ ( ' body, html' ) . stop ( true , true ) . animate ( {
763763 scrollTop : 0
764764 } , 100 , "linear" ) ;
765765 }
@@ -776,7 +776,7 @@ function scrollToBottom() {
776776 scrollTop : ui . area . view [ 0 ] . scrollHeight
777777 } , 100 , "linear" ) ;
778778 } else {
779- $ ( document . body ) . animate ( {
779+ $ ( ' body, html' ) . stop ( true , true ) . animate ( {
780780 scrollTop : $ ( document . body ) [ 0 ] . scrollHeight
781781 } , 100 , "linear" ) ;
782782 }
Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ $(document).ready(function () {
6969} ) ;
7070
7171function scrollToTop ( ) {
72- $ ( document . body ) . animate ( {
72+ $ ( ' body, html' ) . stop ( true , true ) . animate ( {
7373 scrollTop : 0
7474 } , 100 , "linear" ) ;
7575}
7676
7777function scrollToBottom ( ) {
78- $ ( document . body ) . animate ( {
78+ $ ( ' body, html' ) . stop ( true , true ) . animate ( {
7979 scrollTop : $ ( document . body ) [ 0 ] . scrollHeight
8080 } , 100 , "linear" ) ;
8181}
You can’t perform that action at this time.
0 commit comments