krasimir / kuker

Kick-ass browser extension to debug your apps
https://chrome.google.com/webstore/detail/glgnienmpgmfpkigngkmieconbnkmlcn
MIT License
657 stars 26 forks source link

Maintain scroll position #12

Open Coderah opened 5 years ago

Coderah commented 5 years ago

currently it seems to try to keep whatever is selected in view when new actions come in. we have some realtime (collaboration) messages that come in and make debugging a pain when you're trying to scroll around.

Seems like mimicing redux devtools behavior (if the user is scrolled to the bottom scroll for new events, otherwise keep scroll position) would make Kuker even more awesome!

Love the project btw, keep up the great work!

krasimir commented 5 years ago

Hey,

actually that was one of the reasons why I created Kuker. I'm not sure how it is now but that was really annoying before in Redux devtools. The way of how Kuker works:

My thinking around this is that if you want to expect some of the previous events (not the last one) you probably don't want to have everything scrolling.

Coderah commented 5 years ago

Yeah I think its fairly unique to us, and maybe its a bug considering how you described it "If you click on some of the past events it continues receiving the events but do not scroll"

When I have something selected and I'm scrolling to find something near it, but have events coming in every 1-3 seconds it just keeps scrolling back to what's selected each time new events come in.

Maybe the best solution is a way to pause listening for events, that way I can sort of capture a snapshot of events I care about and then pause to debug just that set of events.