Bug Tracker

Modify

Ticket #11012 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

jquery.event.drag does not work with jQuery 1.7.1

Reported by: xiarugu@… Owned by: xiarugu@…
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

when use $(document).on("drag", "div", div_Drag) or $("div").live("drag", div_Drag) it does not work in jQuery 1.7.1

as it can work in jQuery 1.6.x

Change History

comment:1 Changed 2 years ago by sindresorhus

  • Owner set to xiarugu@…
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 2 years ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:3 Changed 2 years ago by torava

I'm having the same problem. The newest version of the plugin is developed for jQuery 1.4.2. (it's the version used on  the plugin's website) Changes made in newer versions of jQuery results this issue.  An example on the plugin's website uses live delegation and with jQuery 1.7 it won't work because in it the function is deprecated. I guess a fix for jQuery 1.7 wouldn't need really big changes to plugin.

comment:4 Changed 2 years ago by dmethvin

Deprecation does not change the function of the software, it is strictly a documentation thing. We still need a test case, I'll reopen.

comment:5 Changed 2 years ago by dmethvin

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:6 Changed 2 years ago by dmethvin

  • Priority changed from undecided to low
  • Status changed from reopened to pending
  • Component changed from unfiled to event

comment:7 Changed 2 years ago by torava

[Here's a test case  http://jsfiddle.net/96Zkv/].

Using jQuery 1.6.4 it works. You are able to drag a box you added to the screen. If you try it with jQuery 1.7, it no longer works. The functionality of event.drag plugin has disappeared.

Version 0, edited 2 years ago by torava (next)

comment:8 Changed 2 years ago by dmethvin

  • Status changed from pending to closed
  • Resolution set to invalid

I see this in the jQuery.event.drag plugin:

jQuery.event.triggered=true;

That has never been a documented interface, and it is no longer is a Boolean. The authors of the plugin will need to change their code, have them contact me if they need help.

comment:9 Changed 2 years ago by torava

I think the plugin is discontinued so they're not going to fix it.

comment:10 Changed 2 years ago by torava

Replying to dmethvin:

I see this in the jQuery.event.drag plugin:

jQuery.event.triggered=true;

That has never been a documented interface, and it is no longer is a Boolean. The authors of the plugin will need to change their code, have them contact me if they need help.

I found a fix to this issue from  this thread. However, it's not helping with live delegation, at least not as far as my tests go.

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.