[GH-ISSUE #528] [Bug] TreeView mouse selection off when scrolling inside a grid #384

Closed
opened 2026-03-04 01:04:31 +03:00 by kerem · 3 comments
Owner

Originally created by @normen on GitHub (Nov 17, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/528

To reproduce:

  • add a grid layout
  • add a TreeView to that grid layout
  • add enough nodes to be able to scroll the TreeView
  • scroll the TreeView down a few rows
  • select a node by mouse
  • the selection is off

idk if I missed something here and the TreeView needs to be updated somehow but I didn't find any documentation about that.

Thanks for this library!

Cheers,
Normen

Originally created by @normen on GitHub (Nov 17, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/528 To reproduce: - add a grid layout - add a TreeView to that grid layout - add enough nodes to be able to scroll the TreeView - scroll the TreeView down a few rows - select a node by mouse - the selection is off idk if I missed something here and the TreeView needs to be updated somehow but I didn't find any documentation about that. Thanks for this library! Cheers, Normen
kerem closed this issue 2026-03-04 01:04:31 +03:00
Author
Owner

@rivo commented on GitHub (Nov 17, 2020):

Thanks for letting me know. This should be fixed now.

<!-- gh-comment-id:728952448 --> @rivo commented on GitHub (Nov 17, 2020): Thanks for letting me know. This should be fixed now.
Author
Owner

@normen commented on GitHub (Nov 17, 2020):

woosh 🚀

thank you!

Am 17.11.2020 06:09 schrieb rivo:

Thanks for letting me know. This should be fixed now.

--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/rivo/tview/issues/528#issuecomment-728952448

<!-- gh-comment-id:728954030 --> @normen commented on GitHub (Nov 17, 2020): woosh 🚀 thank you! Am 17.11.2020 06:09 schrieb rivo: >Thanks for letting me know. This should be fixed now. > >-- >You are receiving this because you authored the thread. >Reply to this email directly or view it on GitHub: >https://github.com/rivo/tview/issues/528#issuecomment-728952448
Author
Owner

@normen commented on GitHub (Nov 18, 2020):

Could it be theres a similar issue in text view? A mouse click always seems to select the top most highlight that is visible, not the one I clicked on.

To reproduce:

  • add a textView
  • add sufficient paragraphs as ["highlights"]
  • scroll down
  • click an entry
  • the topmost entry is selected instead of the one you click on

Am 17.11.2020 06:09 schrieb rivo:

Thanks for letting me know. This should be fixed now.

--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/rivo/tview/issues/528#issuecomment-728952448

<!-- gh-comment-id:729772193 --> @normen commented on GitHub (Nov 18, 2020): Could it be theres a similar issue in text view? A mouse click always seems to select the top most highlight that is visible, not the one I clicked on. To reproduce: - add a textView - add sufficient paragraphs as ["highlights"] - scroll down - click an entry - the topmost entry is selected instead of the one you click on Am 17.11.2020 06:09 schrieb rivo: >Thanks for letting me know. This should be fixed now. > >-- >You are receiving this because you authored the thread. >Reply to this email directly or view it on GitHub: >https://github.com/rivo/tview/issues/528#issuecomment-728952448
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#384
No description provided.