browser - Why does dragging generate blue blocks on an HTML page? -
I think if you open any page, youtube.com is called, and you can use the button Drag the mouse with large blocks of blue will appear, it does not seem that the mouse is dragging or not. In the image below Youtube.com, for example, I pressed the left button and pulled the mouse left to right with a red line and when the point reached at the right point, all the areas on the top became blue:
Does anyone know what's happening here and how can I stop it ? This is a problem for me because I give people a page where they can attract things and there is one of them, so that they can drag and drag a box around a group, but unrelated things on the drag page Creating blue to create. / P>
thanks
When you select an element, it highlights the whole element .
You can use CSS to disable user selection on specific elements:
-webkit-user-select: none; Select -mose-user: none; -MMS User Select: None; Select user: none; Alternatively, with javascript you will need to stop default behavior for the mousedown
event so that the selection does not start.
Comments
Post a Comment