Permalink
Browse files

Change drag/multi:drag ui events to bubblable

  • Loading branch information...
1 parent 7de9360 commit 97cdb9000f95e98e513e5b33080f1038ebd79c08 @iamdustan iamdustan committed Jan 22, 2013
Showing with 5 additions and 1 deletion.
  1. +3 −1 example/library/movies/event-drag.js
  2. +2 −0 src/runner/ui_event.js
@@ -11,11 +11,12 @@ for (var a = 0; a < 3; ++a) {
var x, y,
fill = color('red').darker(.1).randomize('hue');
- new Rect(
+ var r = new Rect(
a * 150 + 50, b * 150 + 50, 100, 100
).attr({
fillColor: fill
})
+ var g = new Group()
.on('mouseover', function() {
this.attr('fillColor', fill.lighter(.2));
})
@@ -35,6 +36,7 @@ for (var a = 0; a < 3; ++a) {
})
.emit('multi:pointerdown')
.addTo(stage);
+ r.addTo(g);
}());
}
View
@@ -10,6 +10,8 @@ define(function() {
pointermove: true,
click: true,
doubleclick: true,
+ drag: true,
+ 'multi:drag': true,
'multi:pointerdown': true,
'multi:pointermove': true,
'multi:pointerup': true

0 comments on commit 97cdb90

Please sign in to comment.