Skip to content
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

new-log-viewer: Requesting next page switching too frequently can cause the view to jump back to a previous page. #64

Open
junhaoliao opened this issue Sep 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@junhaoliao
Copy link
Member

Bug

#54 added a Monaco editor instance and page switching can be achieved via keyboard shortcuts.

It was found that requesting the next page too frequently can cause the view to jump back to a previous page.

yscope-log-viewer version

fefbff7

Environment

Windows
Node.js 22 which runs the dev server
Microsoft Edge Version 129.0.2792.12 (Official build) stable app, beta channel (64-bit)

Reproduction steps

  1. Launched dev server and loaded an example file (refer to Add support for loading files, decoding them as JSONL, and formatting them using a Logback-like format string. #46).
  2. Held down Ctrl + ] on the keyboard to request next page switching multiple times in a short period.
  3. Observed pageNum changed from 1 -> 2 -> 3 -> 4 -> 3 -> 2 or a similar pattern where the view jumps back to a previous page although only "next" pages are requested.
@junhaoliao junhaoliao added the bug Something isn't working label Sep 1, 2024
@junhaoliao
Copy link
Member Author

@davemarco
Has this been fixed by #76 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant