Skip to content

Commit

Permalink
Support selecting multiple scroll speeds on draws page (Fixes #2360) (#…
Browse files Browse the repository at this point in the history
…2365)

This commit fixes #2360 where selecting multiple scroll
speeds on the draws page would cause the stop scrolling
to not work.

Signed-off-by: Jalaj <[email protected]>
Co-authored-by: Étienne Beaulé <[email protected]>
  • Loading branch information
jalaj711 and tienne-B authored Nov 26, 2023
1 parent 56e6068 commit ee572b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tabbycat/draw/templates/draw_display_by.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
$('#stop_scrolling').hide();
$(".scroll-speeds .btn").click(function(event){
var speed = $(document).height() / $(this).attr('data-target');
stopScrolling()
startScrolling()
$('html, body').animate(
{ scrollTop: $(document).height() - $(window).height()},
Expand Down

0 comments on commit ee572b2

Please sign in to comment.