Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated code and example

  • Loading branch information...
commit e32585c9561deadf682501991353df34f0c0c452 1 parent 215315b
Mike Kamermans authored December 07, 2011
1  examples/seneca/canvas properties/demo.pde
... ...
@@ -1,3 +1,4 @@
  1
+cursor(CROSS);
1 2
 void setup() { size(100,100); noLoop(); }
2 3
 void draw() { background(0,0,200); }
3 4
 void mousePressed()  { println("mouse pressed");  }
6  processing.js
@@ -1883,11 +1883,7 @@
1883 1883
       Processing.debug('Unimplemented - ' + s);
1884 1884
     }
1885 1885
 
1886  
-    // Set the canvas properties that determine outline and select selection (we disable both)
1887  
-    var style = curElement.getAttribute("style");
1888  
-    if(!style) { style =""; }
1889  
-    style += " -webkit-user-select: none; outline: none; cursor: arrow; ";
1890  
-    curElement.setAttribute("style",style);
  1886
+    // Disable broswer default handling for click-drag of a canvas.
1891 1887
     curElement.onmousedown = function () { return false; };
1892 1888
 
1893 1889
     // When something new is added to "p." it must also be added to the "names" array.

0 notes on commit e32585c

Please sign in to comment.
Something went wrong with that request. Please try again.