Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

delay/"lag" when scrolling up too fast #16

Open
1 of 3 tasks
ghost opened this issue Apr 29, 2021 · 1 comment
Open
1 of 3 tasks

delay/"lag" when scrolling up too fast #16

ghost opened this issue Apr 29, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 29, 2021

How have you installed gord

  • go get
  • Github Releases (AUR)
  • git clone & go build .

What happened

When scrolling through messages fast enough, the screen will start delaying from the inputs, meaning, if you focus the message container and hold Up for a bit, then, say, hold Down, it'll take a second before it actually starts going down

Error output

How do you reproduce this bug

  1. Go into a channel with a bunch of messages
  2. Focus message container
  3. hold Up for a little bit
  4. Release and then hold Down
  5. Wait and observe

System information

Key Value
OS TODO Artix Linux
Architecture TODO amd64
Terminal TODO kitty
@Bios-Marcel
Copy link

The problem is that tview#TextView was being abused to do all kinds of rendering, selection and whatnot. I'd advise writing a completly custom component that's optimized for the usecase. It'd also allow to fix some other bugs that exist right now, such as the faulty code highlighting and the inability to control textwrap.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant