darkpixlz
(darkpixlz)
February 23, 2023, 12:17am
1
Hello,
I like the new navigation layout, but I found an issue with it.
To reproduce, just hold down:
This is mainly misleading, I thought I would be able to drag it around, but instead, it’s just showing the
cursor:drag
cursor while serving no purpose. I think it’s best if it stays at
pointer
or
default
.
5 Likes
keegan
(Keegan George)
February 23, 2023, 12:22am
2
On smaller device widths the menu can actually be grabbed and dragged across to reach hidden items:
Though, perhaps we could make the cursor default
only when the nav can’t scroll.
5 Likes
darkpixlz
(darkpixlz)
February 23, 2023, 12:25am
3
Yeah, I noticed that just trying it.
I noticed a bit of an inconsistency though. The labels are hidden at the top, but not the bottom.
4 Likes
sam
(Sam Saffron)
February 23, 2023, 4:48am
4
I am not sure this is doable in CSS @awesomerobot ?
6 Likes
We check if it’s scrollable on resize so we can add the left/right controls… so I think this should be doable!
6 Likes
This will make it so it’s only grabby when it’s scrollable
discourse:main
← discourse:no-scroll-no-grab
opened 06:49PM - 24 Feb 23 UTC
Discussed here: https://meta.discourse.org/t/new-nav-layout-uses-cursor-grab-whe… n-mouse-is-pushed/256004
At the moment we allow `scrollDrag()` even if the nav isn't scrollable... so on click and hold the cursor is swapped to `grabbing` even though there's no effect, which can be a little misleading.
Yeah that’s intentional, the bottom list has more items and I don’t think they’re as easy to figure out without text.
5 Likes
This topic was automatically closed after 21 hours. New replies are no longer allowed.