Search and Top Navigation
#10588 closed feature (wontfix)
Opened September 06, 2014 05:26AM UTC
Closed September 06, 2014 11:26AM UTC
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.
Attachments (0)
Change History (1)
Changed September 06, 2014 11:26AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
We're removing the
cursorAt
option in the redesign. You'll have full flexibility in the newbeforeStart
callback. See https://github.com/jquery/jquery-ui/blob/interactions/demos/draggable/cursor-style.html#L18 for an example.