[haiku-bugs] [Haiku] #14857: BListView invokes items on first click

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 27 Jan 2019 19:46:25 -0000

#14857: BListView invokes items on first click
--------------------------------+------------------------------
 Reporter:  KapiX               |        Owner:  nobody
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  Unscheduled
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 BeBook states it should happen on second click:
 https://www.haiku-os.org/legacy-
 docs/bebook/BListView.html#BListView_MouseDown

 The code tries to do that but for some reason fails:
 https://git.haiku-os.org/haiku/tree/src/kits/interface/ListView.cpp#n556

 Can be reproduced with Koder's bookmarks window (built from [1]).

 It immediately goes to clicked bookmark, instead of waiting for a second
 click.

 [1]
 https://github.com/KapiX/Koder/commit/84d237657b0ca7bffa651105460c4572521be34f

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14857>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: