From fb9ec35223b79130af54efadf707292ebc3148b1 Mon Sep 17 00:00:00 2001 From: georgberecz Date: Thu, 7 Dec 2017 14:17:24 +0100 Subject: [PATCH] Add onMouseDrag to Item type --- types/paper/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index f75661377a..46d5f58786 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -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.