Closed kof closed 2 years ago
There's one UX pattern I'm not sure about that I would like to discuss. When scrubbing, if the cursor is dragged away from the input field, the cursor will jump back to the input when the click is released.
This doesn't feel right to me, but figma also does it this way. I'm curious to know what others think. In my view, it's never a good idea to take control of the cursor position from the user. It feels wrong, like if your own hand suddenly moved position in space without you moving it.
That's all subjective though - what do others think?
@taylornowotny that's basically web platform limitation, when you do mouseup, we show you your actual cursor, its where it has always been. While you are dragging we hide the real cursor and show you a fake one. This is how we can go over the window edge and come out on the other side.
This is not fixable.
@taylornowotny that's basically web platform limitation, when you do mouseup, we show you your actual cursor, its where it has always been. While you are dragging we hide the real cursor and show you a fake one. This is how we can go over the window edge and come out on the other side.
This is not fixable.
Understood! All good then. Users who are accustomed to the figma behavior may expect it to work this way anyhow
Just a few remaining issues before it's perfect!
[x] The scrub cursor shows immediately on hover. The primary action that an input will be used for is changing the value, while scrubbing is secondary. For that reason I think the cursor should be the default cursor when the input is hovered.
[x] The scrub cursor looks different on hover vs while scrubbing. In my view, it would be preferable to use just one scrub cursor.
[x] Unitless units (dash) should only be available on properties that accept unitless values. Most properties do not. Currently when selecting unitless from the unit menu, the unit in the input field does not change. In the design there is an icon for this rather than a "-" character, but let me know if there's an issue with that. The reason an icon is used is for visibility in the input field. A simple "-" character can be easy to miss.
For prosperity there's also this issue I found while working on the others.
Video attached:
was done, right?
https://user-images.githubusercontent.com/52824/195978905-bc14d810-3638-4711-a0fa-0f15bc61677a.mp4
[x] On blur should not activate the property name label showing that it has changed when the value hasn't changed,
[x] default cursor over input should be "default", not scrub
[x] don't bind pointermove event if there was no pointerdown event
[x] allow vertical movement when scrubbing horizontally, so that user can avoid covering the number by moving up/down
[x] match the styles of the combobox items with figma
[x] Questions around scrubbing behavior: