bggniit / html-5-canvas-whiteboard

Automatically exported from code.google.com/p/html-5-canvas-whiteboard
0 stars 0 forks source link

Text Select Cursor onmousedown of canvas #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. mousedown on the canvas

What is the expected output? What do you see instead?
You get a text select when you need a pointer, crosshair or arrow.

What version of the product are you using? On what operating system?
Latest on All browsers

Please provide any additional information below.
Use the following to solve in your init function:
document.getElementById(canvasElement.attr("id")).onselectstart = function () { 
return false; } // ie
document.getElementById(canvasElement.attr("id")).onmousedown = function () { 
return false; } // mozilla

Original issue reported on code.google.com by khourykr...@gmail.com on 7 Jul 2010 at 6:41