Bug Tracker

Opened 16 years ago

Closed 15 years ago

#972 closed feature (wontfix)

Ability to select a drag handle that is a parent element of the draggable item.

Reported by: jeffkretz Owned by: stefan
Priority: minor Milestone: 1.1.3
Component: interface Version: 1.1a
Keywords: draggables Cc:
Blocked by: Blocking:

Description (last modified by scott.gonzal)

I implemented the drag-and-drop interface for a table-based menu system. The element to drag was an "A" element inside a TD, but I wanted the user to be able to drag the TD.

I suggest something like this (which worked when I tested it on my project).

Have an optional property such as "handleUp", which would be used in conjunction with "handle". On line 502 of idrag.js, instead of

var dhe = o.handle ? jQuery(this).find(o.handle) : jQuery(this);

something like this:

var dhe = o.handle ? (o.handleUp ? jQuery(jQuery(this).parents(o.handle)[0]) : jQuery(this).find(o.handle)) : jQuery(this);


Change History (1)

comment:1 Changed 15 years ago by scott.gonzal

Description: modified (diff)
need: Review
Resolution: wontfix
Status: newclosed

Interface is no longer supported; consider switching to jQuery UI.

Note: See TracTickets for help on using tickets.