-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/scrolling entire page #548
base: develop
Are you sure you want to change the base?
Bugfix/scrolling entire page #548
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
Seeing some problems with WebSockets tab:
|
src/main/zapHomeFiles/hud/drawer.js
Outdated
@@ -201,26 +227,14 @@ Vue.component('websockets', { | |||
|
|||
eventBus.$on('updateWebSockets', data => { | |||
this.messages = this.messages.concat(data.messages); | |||
this.scrollToBottom() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not added to updateMessages
?
btw, worth updating the change log with the fix. |
ah the messageid's on the websocket events aren't unique :( That's why this latest scrolling issue popped up @thc202. Good find! |
Should work well now. One behavior with it that I don't like though is that if you were to scroll up to find a specific request, and new request comes in, it will jump you to the bottom. :/ but scrolling is much better now. |
couldn't figure out how to detect scroll on the table. would be nice to match the behavior of the network tab Feel free to merge if y'all like the behavior. its probably worth fixing the way it is currently |
Hum, that could also be really annoying - jumping to the bottom when you've explicitly scrolled to find something :/ Cant we use scroll events to detect scrolling? https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event I think we want:
The other option is something like a checkbox for auto scrolling to the bottom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think always auto scrolling the the end would make it impossible to find requests with modern web apps :/
Yeah, that's the behaviour we have in desktop UI, if the scroll it's at the bottom it keeps scrolling on new entries otherwise it doesn't scroll (the auto-scroll can also be disabled). |
Yeah that's definitely the behavior we want. I spent a few hours trying to figure that out yesterday and wasn't able to figure out where to tap for the |
fixes a broken fix in #504 for