Skip to content

Commit

Permalink
added startdrag and enddrag events to Demo.events
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 2, 2014
1 parent 440e9d2 commit 7c75614
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions demo/js/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7c75614

Please sign in to comment.