0

Hai everybody.

if rotate =true
how to disbale draggable function

this is my code

but rotate working fine.

draggable function not disable and enable
anybody plz help me.

$('.planspace-image').draggable({});

        //.resizable();

                $('.upload_pic')
    .resizable({

        start: function(e, ui) {


        },
        resize: function(e, ui) {

        },
        stop: function(e, ui) {
            //alert('resizing stopped');
        }
    });

    var rotate = false;
    var drag = true;
    $('.rotate').mousedown(function()
    {

    //   start:$('.upload_pic').mousedown(function(e) {
       //$(document).mousedown(function(e) {
        //alert("hai");
        //e.preventDefault();
        rotate=true;

            $(document).mousemove(function(e2) {
                $('.planspace-image').draggable({disable: true});

                if(rotate == true )
                {
                rotateOnMouse(e2,$('.upload_pic'));
                } 

            });

         $(document).mouseup( function() {

        rotate = false;
             $('.planspace-image').draggable({disable: false});

    });  
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by vijayram
0

hai ,

Thanks ,but still,i have same problem.
image not dragging after rotation false

what is the problem plz help me.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.