Skip to content

Change cursor when dragging grid event #229

@tyler-dane

Description

@tyler-dane

Current Behavior

When clicking and dragging an event on the grid the cursor changes from default to grab.

current.mov

Notice how the cursor changes when it gets close to the event borders.

Expected Behavior

The cursor behavior mimics Google Calendar's implementation

gcal.mov

Acceptance Criteria

  • When hovering over an event, the cursor changes from default to pointer.
  • When mousing down an event and immediately dragging it, the cursor changes from pointer to move
  • When clicking an event and holding the cursor in the same position for ~1 second, the cursor changes from pointer to move. (Doesn't have to be exactly 1 second - experiment with what feels right.)
  • Works for existing grid events
  • Works for draft grid events (when the event hasn't been saved to the DB yet)

Use-Case

This will improve the dragging UX, a very common task for users. By having a consistent drag experience that subtly suggests what to do next, they will reschedule their event quicker and will be more likely to use the app.

Resources

https://developer.mozilla.org/en-US/docs/Web/CSS/cursor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions