After reading the responses to this question, I have implemented the same functionality where I check for event.preventDefault
and either run event.preventDefault()
or event.returnValue = false
. This seems to have solved the problem for the user in the question but mine is still highlighting text. It is hitting the line event.returnValue = false
in IE 7/8. It also works well in Firefox, Chrome, IE 9+.
A little more information: I am using a raphael canvas. I have the mousedown, mousemove, and mouseup events for the canvas all doing their own thing. I implemented the check for event.preventDefault
in the mousedown
callback function.