Search and Top Navigation
#3262 closed enhancement (wontfix)
Opened August 28, 2008 05:59PM UTC
Closed October 12, 2010 01:13AM UTC
Draggable with cursorAt in percent
Reported by: | skorpan | Owned by: | paul |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.draggable | Version: | 1.6b |
Keywords: | draggable, percent, %, css | Cc: | |
Blocked by: | Blocking: |
Description
I'd like the "cursorAt" option of draggables to accept positions in percent, much like CSS does. Specifically, I'd like to be able to tell ui.draggable that I want the cursor in the very middle of the elements I drag. I don't think implementing this enhancement would be very difficult (simply checking "typeof" on the value of the property in the settings object).
It would look something like this:
$(something).draggable({ cursorAt: { right: '50%', left: '50%' } });