Disabling Selection

Our canvas was a little buggy because when users were drawing sometimes they would pass the mouse over the tools and that would make a selection (like when you are selecting a text). It looked ugly!

We fixed the problem with css adding following cases to the drawing tools div:

-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>