rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang
MIT License
11.11k stars 576 forks source link

listbox and tree will select wrong node after mouse scroll end #1044

Open wellcomez opened 4 weeks ago

wellcomez commented 4 weeks ago

remove adjust offset on mouse click #1043

rivo commented 3 weeks ago

I'd like to ask you to provide a brief piece of code that reproduces the issue you're facing, along with a meaningful description, instead of a — and I'm sorry to say that — badly documented pull request and issue that simply tells me "what I should do".

I don't even understand what the problem is.

wellcomez commented 2 weeks ago

I'd like to ask you to provide a brief piece of code that reproduces the issue you're facing, along with a meaningful description, instead of a — and I'm sorry to say that — badly documented pull request and issue that simply tells me "what I should do".

I don't even understand what the problem is.

  • There are 9 items in view and view height is 3
  • current Item is 0
  1. scroll view with mouse wheel
  2. after scrollend, click on item 8 in listview
  3. Expect result is current item 8 and 8 be highlighted
  4. Current issue, after click, current item changed but to 0