Skip to content

Commit 85bf961

Browse files
author
Philip Guo
committed
prevent the code display from wildly scrolling like crazy
1 parent 89a2d73 commit 85bf961

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PyTutorGAE/js/pytutor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ ExecutionVisualizer.prototype.updateOutput = function() {
788788
var ST = codeOutputDiv.scrollTop();
789789
var H = codeOutputDiv.height();
790790

791+
codeOutputDiv.stop(); // first stop all previously-queued animations
791792
codeOutputDiv.animate({scrollTop: (ST + (LO - PO - (Math.round(H / 2))))}, 300);
792793
}
793794

0 commit comments

Comments
 (0)