gui: Scroll to bottom by clicking message in log viewer (#9128)

This commit is contained in:
d-volution
2023-09-25 19:42:27 +00:00
committed by GitHub
parent 80a577b025
commit 9940c91ebf
2 changed files with 6 additions and 1 deletions
@@ -1430,6 +1430,11 @@ angular.module('syncthing.core')
// Browser events do not cause redraw, trigger manually.
$scope.$apply();
},
scrollToBottom: function () {
var textArea = $('#logViewerText');
var scrollHeight = textArea.prop('scrollHeight');
textArea.prop('scrollTop', scrollHeight);
},
timer: null,
entries: [],
paused: false,