开发者

When i use draggable for an element then the click function is not working

I am using the draggable function for the element using jquery..when I use this the click function is not working on that..why is that and how to remove this bug? pls help me

// Reizable and draggable for the YOUTUBE widget**************
$(function() {
    $( "#yo开发者_Go百科utube" ).draggable(
        {cursor: 'move'}
    );

    $( "#youtube" ).resizable({
        ghost: true,
        alsoResize: '#player',
        handles: "n, e, s, w"
    });
});


probably because the click event requires the mouse to go down and up. if you're dragging, that never fires. Try using the mousedown event instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜