After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692913 - apps-menu: improve submenu navigation
apps-menu: improve submenu navigation
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
3.8.1 classic
Depends on:
Blocks:
 
 
Reported: 2013-01-31 01:25 UTC by Matthias Clasen
Modified: 2013-04-04 12:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
apps-menu: Improve submenu navigation (3.95 KB, patch)
2013-02-01 21:03 UTC, Debarshi Ray
none Details | Review
apps-menu: Improve submenu navigation (4.37 KB, patch)
2013-03-07 20:05 UTC, Debarshi Ray
none Details | Review
apps-menu: Improve submenu navigation (4.40 KB, patch)
2013-03-20 12:46 UTC, Debarshi Ray
committed Details | Review

Description Matthias Clasen 2013-01-31 01:25:09 UTC
gtk menus employ a so-called keep-up triangle to keep submenus from changing underneath you if you mouse towards the submenu and stray from a straight horizontal line, leaving the item you were in. I think we need something like this to make the navigation feel comfortable.
Comment 1 Debarshi Ray 2013-02-01 21:03:12 UTC
Created attachment 235033 [details] [review]
apps-menu: Improve submenu navigation
Comment 2 Matthias Clasen 2013-02-02 23:56:15 UTC
Nice work, but it feels a little bit laggy now if I move the mouse vertically over the categories - the selection only jumps after I'm about halfway over the next item. This is different from gtk menus, where it jumps right away.
Comment 3 Debarshi Ray 2013-03-07 20:05:56 UTC
Created attachment 238338 [details] [review]
apps-menu: Improve submenu navigation

Only use the keep-up triangle if the mouse movement is more horizontal than vertical.
Comment 4 Matthias Clasen 2013-03-11 14:47:25 UTC
hmm, with this patch, I don't seem to get any keepup - as soon as I leave the menuitem, the submenu changes. Even if I move in a largely horizontal direction.
Comment 5 Debarshi Ray 2013-03-20 12:46:22 UTC
Created attachment 239353 [details] [review]
apps-menu: Improve submenu navigation

In the previous patch, the keep-up triangle only worked if you threw the mouse over to the left instead of moving it slowly.

This was caused by the fact that the following statement does not result in a copy-by-value:
  this._old_coords = coords;

This patch addresses that issue.
Comment 6 Matthias Clasen 2013-03-20 15:01:14 UTC
Works great now in my testing
Comment 7 Debarshi Ray 2013-03-26 12:36:22 UTC
Ping. Would be nice to have it in 3.8.0.
Comment 8 Matthias Clasen 2013-04-03 01:54:09 UTC
Hey, can we get this merged for 3.8.1 ?
Comment 9 drago01 2013-04-03 13:08:28 UTC
Review of attachment 239353 [details] [review]:

Looks good, not sure the values 5 and 50 work in all cases but they did in my quick testing.
Comment 10 Debarshi Ray 2013-04-04 12:41:40 UTC
Comment on attachment 239353 [details] [review]
apps-menu: Improve submenu navigation

Thanks for the review. Pushed.