From 7c75614ae33f27f78a4e845d6377fb9e8371c581 Mon Sep 17 00:00:00 2001 From: liabru Date: Tue, 2 Dec 2014 21:38:02 +0000 Subject: [PATCH] added startdrag and enddrag events to Demo.events --- demo/js/Demo.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/demo/js/Demo.js b/demo/js/Demo.js index bb212ecd..fe9ba4e0 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -1132,6 +1132,24 @@ ); + _sceneEvents.push( + + // an example of using mouse events on a mouse + Events.on(_mouseConstraint, 'startdrag', function(event) { + console.log('startdrag', event); + }) + + ); + + _sceneEvents.push( + + // an example of using mouse events on a mouse + Events.on(_mouseConstraint, 'enddrag', function(event) { + console.log('enddrag', event); + }) + + ); + // scene code var stack = Composites.stack(50, 100, 8, 4, 50, 50, function(x, y, column, row) {