Did you ever resolve this issue?
Thanks,
Shane
On 9/14/05, François Beausoleil <[EMAIL PROTECTED]
> wrote:
Hi !
Renato Formato said the following on 2005-09-14 11:47:
> Hi, I've managed to stop the onclick event by setting an onclick event
> handler to query a property I added to the Draggable object to track if
> dragging was started.
> The handler executes this code:
>
> function stopClick(event) {
> if (!event) event = window.event
> var drag=this.parentNode.drag; //retrieve the Draggable object
> if(drag.justdragged) {Event.stop(event);drag.justdragged=false;}
> }
>
> where drag is the Draggable object and justdragged is the new property
> to track if dragging was started.
Thanks, but it doesn't seem to work for me. Besides, if I look at
Draggable's code, I can see this:
startDrag: function(event) {
if(Event.isLeftClick(event)) {
this.active = true;
var style = this.element.style;
// deleted stuff
Event.stop(event);
}
},
You see, the DnD library already stops propagation of the event...
Also, Draggable.active seems to serve the same purpose as your
justdragged property.
There must be something I'm not understanding here.
Thanks,
François
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs