mirror of
https://github.com/mthenw/frontail.git
synced 2026-04-26 02:05:57 +03:00
[GH-ISSUE #159] Auto-scrolling doesn't work #109
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/frontail#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bagunda on GitHub (Feb 5, 2019).
Original GitHub issue: https://github.com/mthenw/frontail/issues/159
Auto-scrolling doesn't work
https://www.youtube.com/watch?v=iqamAAtSTu0
@ravening commented on GitHub (Aug 23, 2019):
Facing the same issue. Autoscroll doesnt work and everytime I have to scroll down manually to see the latest logs
@mthenw commented on GitHub (Aug 23, 2019):
@Bagunda @rakgenius which browser do you use?
@andrelung commented on GitHub (Aug 24, 2019):
I am encountering the same issue with the latest chrome (76.0.3809.100). I might also add, that I am using frontail with openhabian
@ravening commented on GitHub (Aug 24, 2019):
@mthenw Im using chrome browser Version 76.0.3809.100 (Official Build) (64-bit)
@Bagunda commented on GitHub (Aug 24, 2019):
@mthenw commented on GitHub (Aug 24, 2019):
Can you paste me the exact command that you are running (or openhabian is running)?
@mthenw commented on GitHub (Aug 24, 2019):
@Bagunda I cannot see that on your video but what happens when the window is scrolled to the bottom and you refresh the page? Does it go back to top?
@mthenw commented on GitHub (Aug 24, 2019):
@Bagunda @andrelung @rakgenius can I ask you to validate the fix from https://github.com/mthenw/frontail/pull/180?
@andrelung commented on GitHub (Aug 25, 2019):
Openhabian is using the npm-based installation.
Line 30 you can see how it is installed: https://github.com/openhab/openhabian/blob/master/functions/nodejs-apps.bash
And here is the exact command (/service):
https://github.com/openhab/openhabian/blob/master/includes/frontail.service
I'll try uninstalling the npm version and installing your fix later today.
@Bagunda commented on GitHub (Aug 25, 2019):
frontail -d -n 100 --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/default.json /var/log/openhab2/openhab.log /var/log/openhab2/events.logor
frontail -d -n 1000 --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/default.json /var/log/openhab2/openhab.log /var/log/openhab2/events.log@Bagunda commented on GitHub (Aug 25, 2019):
Here is new video https://www.youtube.com/watch?v=2Y6H5Qb7IGs
@Bagunda commented on GitHub (Aug 25, 2019):
Today I try fix #180. At the end of the video https://www.youtube.com/watch?v=2Y6H5Qb7IGs
Autoscroll doesn't work.
@mthenw commented on GitHub (Aug 26, 2019):
I merged the PR and release new version (4.7.0) as it fixes @andrelung issue.
@Bagunda could you scroll your window to the bottom and run the following command in the dev tools?
@Bagunda commented on GitHub (Aug 27, 2019):
https://youtu.be/iKUkM_MkApc

@mthenw commented on GitHub (Aug 27, 2019):
OK, looks like I know the culprit. Basically, your view is zoomed in. That's why the measurements are different than usual. Let me try to fix it.
@Bagunda commented on GitHub (Sep 25, 2019):
In the settings of windows 10, I zoomed thescale.
Are you talking about this?
@mthenw commented on GitHub (Sep 28, 2019):
@Bagunda yeah, that's probably it.
@riotm0de commented on GitHub (Dec 10, 2019):
Openhabian 2.4 (stable)
Frontail 4.8.0
Raspb. 3 B
Chrome and Edge
no Auto-Scroll for me :(
Using "Simple-Autoscroll" Extension for Chrome in the meanwhile.
@radokristof commented on GitHub (Jan 18, 2020):
Same problem on a zoomed scale. On normal scale it works as it should...
@sujitrp commented on GitHub (Apr 8, 2020):
This is browser issue . works good in firefox or edge browser
@Wikibear commented on GitHub (Jul 27, 2020):
This is not a browser issue. If you check scrollY you get a float. This float is to small and you be stay all the time under body height value.
What i recommand a math round in line 305 at app.js:
from
var wasScrolledBottom = window.innerHeight + window.scrollY >= document.body.offsetHeight;
to this:
var wasScrolledBottom = window.innerHeight + Math.round(window.scrollY) >= document.body.offsetHeight;
Maybe a button for auto scroll is a bit better.
I have this issue in all modern Browser like Edge, Chrom, Opera and Firefox.
NPM is version 4.9.1 with this bug.
@ak2766 commented on GitHub (Nov 21, 2021):
No auto-scroll on Firefox (v94.0) on Linux...
Only change in Firefox is making fonts bigger - would that affect auto-scroll?