console.js: scroll patch for zoomed Chrome by Markus (Forum #51897)
git-svn-id: https://svn.fhem.de/fhem/trunk@11822 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -112,8 +112,9 @@ consStart()
|
||||
|
||||
|
||||
$("#console").scroll(function() { // autoscroll check
|
||||
if($("#console")[0].scrollHeight - $("#console").scrollTop() ==
|
||||
$("#console").outerHeight()) {
|
||||
|
||||
if($("#console")[0].scrollHeight - $("#console").scrollTop() <=
|
||||
$("#console").outerHeight() + 2) {
|
||||
if(!mustScroll) {
|
||||
mustScroll = 1;
|
||||
log("Console autoscroll restarted");
|
||||
|
||||
Reference in New Issue
Block a user