I have this pullable:
$ (". Tab li") ((Back: true, delay: 1000, opacity: .75, accessory: "clone", append: "body"}) .bund ("dragart", this.do something). Bund ("dragstop", this. Undo something); Therefore, dragging may begin after the second to hold the mouse, until it moves the mouse after 1 second, it works fine. As soon as the mouse is moved, the draggish event will be sent to Do not want it to be. I want to trigger 'Trigger' to trigger after 1 second, even if you can not drag the mouse.
I know I can do this with it :
.bind "Mousedown", this.setSomeIntervalAndWait) But I need access to the ui.draggable element which is dragable () The part is made in the form, so that the Moordownn / mouseup solution will not do this.
Is it possible to trigger the event on delay instead of mouse movement without modifying jQuery UI? I can not do anything together to use timeliness, cloning the object, drag it and drag it to the 'dragger', but I'm hoping for some less complexity.
The answer is not the same. Dragable interaction of jQuery UI does not support this, so you need to either modify the JQuery UI, or do something like you've already placed. I had to go with the latter two, as long as you do not know that you are going to reuse lot I would say that the best way to implement something like this is that a custom of jQuery The event handler (pre-1.7) or (post -1.7) must be used. You can apply anything to your own, which implements draggable , but with the addition of your event. Let me know if you want more information than this, or for example to write such plug-ins.
Comments
Post a Comment