Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great to be able to swipe the toolbar tray off the screen once it's activated. This is a more natural way to dismiss the menu.
Comment | File | Size | Author |
---|---|---|---|
swipe-toolbar-tray-off.png | 115.76 KB | jessebeach |
Comments
Comment #1
Bojhan CreditAttribution: Bojhan commentedComment #2
LewisNymanAre you thinking of implementing a third party library to help with this? I wrote the gestures from scratch in my prototypes because I wanted one to one movement but there are some nice libraries out there like hammer.js that dO a lot of heavy lifting.
Comment #3
jessebeach CreditAttribution: jessebeach commentednod_ suggested hammer.js as well. I think it's a great starting point.
Comment #4
LewisNymantaggin
Comment #5
nod_We should 'hardcode' it, I don't want yet another lib at this point (unless we start putting gestures all over the place but it's way late for that…)
Comment #6
LewisNymanIt seems strange to have one off gestures in a few UIs. This doesn't set up consistent expectations. Maybe we should push this to 9.x or a point release?
Comment #7
nod_Comment #8
LewisNymanNow that the menu button is the furthest away from a thumb it could be and it also stays open when you go to the next page, I think this is less of a nice to have and more essential. I can implement this without a library if it means we can get this in 8.x?
Comment #9
Wim LeersI agree.
Comment #10
Bojhan CreditAttribution: Bojhan commentedI agree, we shouldn't shy away from interactions that are perceived as "nice-to-have" - that is what differentiates between usable and delightful.
Comment #11
nod_+1 to no library.
Comment #12
LewisNymanComment #13
Wim LeersIf this is the main reason, shouldn't we do #2103247: Clicking menu links in the administration menu tray should close the admin menu tray, while in a narrow viewport where the toolbar is positioned on top of the content instead?
Though I'd honestly prefer this over that.
Comment #14
LewisNymanWe haven't really progressed with touch specific UX stuff in D8 and it's a little hard to start adding gestures in now, we should probably used a library to keep implementation consistent. Let's focus on #2103247: Clicking menu links in the administration menu tray should close the admin menu tray, while in a narrow viewport where the toolbar is positioned on top of the content because that is so annoying.
Comment #15
Wim LeersOk, that makes a ton of sense :)
Comment #25
nod_I guess, let's try it?