Merge pull request #22028 from georgberecz/Add-onMouseDrag-to-paper-Item

[paper] Add onMouseDrag to Item type
This commit is contained in:
Bowden Kelly
2017-12-08 09:15:08 -08:00
committed by GitHub
+6 -1
View File
@@ -1305,7 +1305,12 @@ declare module 'paper' {
* The function to be called when the mouse button is pushed down on the item. The function receives a MouseEvent object which contains information about the mouse event.
*/
onMouseDown: (event: MouseEvent) => void;
/**
* The function to be called when the mouse position changes while the mouse is being dragged. The function receives a MouseEvent object which contains information about the mouse event.
*/
onMouseDrag: (event: MouseEvent) => void;
/**
* The function to be called when the mouse button is released over the item.
* The function receives a MouseEvent object which contains information about the mouse event.