And @Lochiel still has issues:
Accipiter, I had the scrolling fail today. It had been fine for several days before, but maybe I just wasnβt doing much with the window and didnβt happen to do any of the things that make it fail to auto-scroll. Anyway,
After I noticed it wasnβt scrolling, but at a point where I was scrolled down to the bottom of the window:
[Log] Maximusβ debug info: β 35067 β 486 β 35552 β 35068 β true (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35067 β 486 β 35552 β 35067 β true (main.51b73ed0.js, line 1, x2)
[Log] Maximusβ debug info: β 35066 β 486 β 35552 β 35067 β true (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35066 β 486 β 35552 β 35066 β true (main.51b73ed0.js, line 1, x4)
[Log] Maximusβ debug info: β 35065 β 486 β 35552 β 35066 β true (main.51b73ed0.js, line 1)
After some additional messages arrived but did not scroll automatically into view, and also after scrolling down slightly (but not all the way) since there were no Maximus lines in the console at that point:
[Log] Maximusβ debug info: β 35080 β 486 β 35692 β 35079 β false (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35082 β 486 β 35692 β 35080 β false (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35083 β 486 β 35692 β 35082 β false (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35084 β 486 β 35692 β 35083 β false (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35085 β 486 β 35692 β 35084 β false (main.51b73ed0.js, line 1)
After scrolling all the way down and entering a pose, which also did not scroll automatically into view:
[Log] Maximusβ debug info: β 35207 β 486 β 35692 β 35206 β true (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35207 β 486 β 35692 β 35207 β true (main.51b73ed0.js, line 1, x5)
[Log] Maximusβ debug info: β 35208 β 486 β 35692 β 35207 β true (main.51b73ed0.js, line 1)
[Log] Maximusβ debug info: β 35208 β 486 β 35692 β 35208 β true (main.51b73ed0.js, line 1, x11)
[Log] Maximusβ debug info: β 35205 β 486 β 35692 β 35208 β true (main.51b73ed0.js, line 1)
This is what the numbers mean:
- scrollTop - how far down you have scrolled from the top of the log.
- clientHeight - the height of the visible chat log.
- scrollHeight - the height of the total chat log, including what canβt be seen.
- previous scrollTop - the previous scrollTop value. Always equals 1. from previous row.
- was locked - true if the client previously was locked-to-bottom.
So, when scrollTop + clientHeight = scrollHeight, you are at the bottom.
Now, if scrollTop (1) is less than previous scrollTop (4), it will unlock from bottom, and stay.
For some reason, the last line says you scrolled up 3 pixels (from 35208 to 35205), thus βfreeingβ yourself from being locked to bottom.
Not sure why thoughβ¦
The hunt for the perfect scroll-to-bottom lock still goes on!
/Accipiter