Bug Tracker

Modify

Ticket #972 (closed feature: wontfix)

Opened 7 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

Description (last modified by scott.gonzal) (diff)

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);

JK

Change History

comment:1 Changed 6 years ago by scott.gonzal

  • need set to Review
  • Status changed from new to closed
  • Resolution set to wontfix
  • Description modified (diff)

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.