[haiku-bugs] Re: [Haiku] #11703: [Interface Kit] shorten menu delay

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 05 Jan 2015 07:34:19 -0000

#11703: [Interface Kit] shorten menu delay
----------------------------------+----------------------------
   Reporter:  diver               |      Owner:  axeld
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by pulkomandy):

 We discussed this with Diver on IRC, and the 0.2 second delay is too long
 and easily noticeable. It is also not strictly needed for diagonal
 navigation: there is another (longer) delay for this. It is currently set
 to about 1 second. However, removing the short initial delay would make
 the first submenu open immediately, and if a diagonal move is detected, no
 other submenu can be reached for 1 second.

 One solution could be to use an adaptative delay. I think it's possible to
 detect when the mouse is slowing down as it gets close to the target menu
 item and shorten the delay then, but make it longer when the mouse is
 starting to move again (possibly to move into the submenu). Other ways to
 detect this could use the mouse direction (if it's mostly vertical, the
 mouse is likely not trying to go into a submenu)

 Diagonal menus without delay are possible as seen for example on Amazon's
 website: http://bjk5.com/post/44698559168/breaking-down-amazons-mega-
 dropdown

--
Ticket URL: <https://dev.haiku-os.org/ticket/11703#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: