新的导航布局在按下鼠标时使用光标抓取

Hello,

I like the new navigation layout, but I found an issue with it.


To reproduce, just hold down:
image
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 个赞

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 个赞

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 个赞

I am not sure this is doable in CSS @awesomerobot ?

6 个赞

We check if it’s scrollable on resize so we can add the left/right controls… so I think this should be doable!

6 个赞

This will make it so it’s only grabby when it’s scrollable

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 个赞

This topic was automatically closed after 21 hours. New replies are no longer allowed.