angular.js/docs
Pete Bacon Darwin de296f1b52 docs(compiler): don't drag selected content
In the example with draggable, the mouseDown handler needs to start with an event.preventDefault(). Otherwise the following bug occurs:
1) Select the text of the draggable span by clicking outside the span and dragging the mouse to the left or right through the span. Release the mouse button.
2) Now click on the span's inner text, and start to Drag it. The browser's default functionality that drags highlighted text so that it can be pasted into something else (say a document in a text editor) is invoked.
3) Release the mouse button. Now suddenly, you'll be dragging the span. But you won't be able to place it down on the page. It'll just follow the mouse around until the page is refreshed.

Closes: #2465
2013-04-22 13:38:18 +01:00
..
content docs(compiler): don't drag selected content 2013-04-22 13:38:18 +01:00
img doc(guide): add concepts 2012-08-27 15:44:38 -07:00
spec feat(ngAnimate): add support for animation 2013-04-02 14:05:06 -07:00
src chore(ngDoc): fix a typo with IE warning 2013-04-19 21:56:39 +01:00