daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(that.type == "drag"){
  2.       dragok=false;
  3.       for(var i=0;i<storedLines.length;i++){
  4.           var r=storedLines[i];
  5.           if(r.x1>startX && r.x2<(mouseX + startX) && r.y1>startY &&  r.y2<(mouseY + startY)){
  6.               // if yes, set that rects isDragging=true
  7.               dragok=true;
  8.               r.isDragging=true;
  9.               ctx.strokeStyle = "blue";
  10.           }
  11.       }
  12.    }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top