Hello all :) nice to meet ya
I'm sort of stucked in preventing the .click() firing while dragging a layer.
I would like to listen to fire clicks only when the dragging is over.
my markup is as follow:
<div id="scrollpane">
<ul id="channame">
<li ></li>
...
</ul>
</div>
and my code:
$("#scrollpane").draggable({
containment: [-1250, -1500, 85, 230],
drag:(function(sync){
yy=$(this).offset();
$("#chanbar").css({"top":(yy.top - 230)});
})
});
/* then */
$("ul#channame li").click(expand);
-----------------------------------------
the #scrollpane is just covered with <li>
So when i'm dragging #scrollpane, $("ul#channame li").click(expand) is fired
each time.
I would like to prevent this; and only firing click() when i'm not dragging.
Thanks for your kind attention.
Yours.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---