开发者

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

开发者 https://www.devze.com 2023-02-13 21:18 出处:网络
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

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

精彩评论

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

关注公众号