English 中文(简体)
dragStart on draggables persistent calls in jquery?
原标题:dragStart on draggables repeatedly called in jquery?

Ok. 因此,在运动停止和用户开始重新移动之后,一小小米会再发生一次可观的“start<>/code>”事件,即使有点 t倒?

主要问题是,我希望我能够根据奇数或甚至班子的大小,来制造我的可观。

但是,我担心用户可能开始拖累、停下来、重新开车,而没有释放可能重新吸收退款的花.。 是否只有一度赶上拖拉开端事件?

最佳回答

你的假设是错误的。 <代码>dragstart 事件只发生一次火灾。 事实上,用户首先开始拖拉。 如果他停止了数秒的拖.动议,然后重新开始 mo动,那就没有问题了。 只要他 t倒,然后点击了一件大事,就会再次打火。

用户在绕过电线时发射的事件是<条码>drag。 当暴动在拖车时移动时,这种火力会发生。

问题回答

那么,这意味着,根据被拖走的项目,我能够制造出我的落脚石,然而,在开始活动时,这似乎并没有奏效?

$("#theSchedule, #theExtras").live( mouseover , function () {
    $(".curSelected").draggable({
            helper:  clone ,
            opacity: 0.50,
            appendTo:  body ,
            zIndex: 4,
            addClasses: false,
            start: createDrops,
            stop: tooltip
        });
    }).live( mouseout , function (e) {
        $(".curSelected").draggable( destroy );
    });

function createDrops(ev, ui){
    disableTip();
        if($(ui.helper).hasClass("even")){
        $(".even, .evenExtra").droppable({
        accept: ".curSelected",
        addClasses: false,
        hoverClass:  dropHover ,
        drop: moveJob
        });
    } else {
        $(".odd, .oddExtra").droppable({
        accept: ".curSelected",
        addClasses: false,
        hoverClass:  dropHover ,
        drop: moveJob
        });
    }

}




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签