Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated code and example

  • Loading branch information...
commit e32585c9561deadf682501991353df34f0c0c452 1 parent 215315b
Mike Kamermans authored
Showing with 2 additions and 5 deletions.
  1. +1 −0  examples/seneca/canvas properties/demo.pde
  2. +1 −5 processing.js
1  examples/seneca/canvas properties/demo.pde
View
@@ -1,3 +1,4 @@
+cursor(CROSS);
void setup() { size(100,100); noLoop(); }
void draw() { background(0,0,200); }
void mousePressed() { println("mouse pressed"); }
6 processing.js
View
@@ -1883,11 +1883,7 @@
Processing.debug('Unimplemented - ' + s);
}
- // Set the canvas properties that determine outline and select selection (we disable both)
- var style = curElement.getAttribute("style");
- if(!style) { style =""; }
- style += " -webkit-user-select: none; outline: none; cursor: arrow; ";
- curElement.setAttribute("style",style);
+ // Disable broswer default handling for click-drag of a canvas.
curElement.onmousedown = function () { return false; };
// When something new is added to "p." it must also be added to the "names" array.
Please sign in to comment.
Something went wrong with that request. Please try again.