Opened 7 years ago

Closed 7 years ago

#10588 closed feature (wontfix)

Modify cursorAt option to be more generalised

Reported by: tj Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

Hi UI team,

At the moment, cursorAt option accepts an object as argument with top, left, right, bottom attributes.

If the items in a sortable has different dimensions, then it's difficult to position the cursor, say for example: at the center of the item being dragged since different items have different dimensions.

It'd be nice if the cursorAt option accepts values such as "top left", "bottom right" (the css background-position syntax) or if we had access to the current item being dragged so that the user can calculate the respective coordinates and return it to the cursorAt option.

This is just a suggestion that came to my mind while working with sortables. Would be nice to have it implemented if it is not an overkill.

Thanks and regards.

Change History (1)

comment:1 Changed 7 years ago by Scott González

Resolution: wontfix
Status: newclosed

We're removing the cursorAt option in the redesign. You'll have full flexibility in the new beforeStart callback. See https://github.com/jquery/jquery-ui/blob/interactions/demos/draggable/cursor-style.html#L18 for an example.

Note: See TracTickets for help on using tickets.