但是,对拖动的处理必须在文档对象中运行,因为要获得所有鼠标移动事件,而不仅仅是光标在目标对象上时发生的鼠标事件。
The drag handling, however, must be running in the document object, because you want to get all mouse-move events, not just those that might happen with the cursor over the target object.
如果将鼠标移动到该对象的右侧,鼠标指针将改变,表示您可以单击以连接该元素。
If you move the mouse to the right side of the object, the mouse pointer changes, indicating that you can click to connect the element.
前者是当鼠标移动到一个新的元素上时发生,而后者是当鼠标移出绑定对象时发生。
The former occurs when the mouse is moved onto a new element. The latter fires only if the mouse is moved out of the boundaries of an object.
应用推荐