File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var CHECKSUM = {
2- build : 'f0ace370-6bbe -11e7-bc0b-07efe44856f0 '
2+ build : 'a0dd6670-6c05 -11e7-b85b-a1c8155e4882 '
33} ;
44module . exports = CHECKSUM ;
Original file line number Diff line number Diff line change 1+ var Class = require ( '../../utils/Class' ) ;
2+ var Event = require ( '../../events/Event' ) ;
3+
4+ var DragEndEvent = new Class ( {
5+
6+ Extends : Event ,
7+
8+ initialize :
9+
10+ function DragEndEvent ( pointer , gameObject )
11+ {
12+ Event . call ( this , 'DRAG_END_EVENT' ) ;
13+
14+ this . pointer = pointer ;
15+ this . gameObject = gameObject ;
16+ this . input = gameObject . input ;
17+
18+ this . x = gameObject . input . localX ;
19+ this . y = gameObject . input . localY ;
20+ }
21+
22+ } ) ;
23+
24+ module . exports = DragEndEvent ;
Original file line number Diff line number Diff line change 1+ var Class = require ( '../../utils/Class' ) ;
2+ var Event = require ( '../../events/Event' ) ;
3+
4+ var DragEvent = new Class ( {
5+
6+ Extends : Event ,
7+
8+ initialize :
9+
10+ function DragEvent ( pointer , gameObject )
11+ {
12+ Event . call ( this , 'DRAG_EVENT' ) ;
13+
14+ this . pointer = pointer ;
15+ this . gameObject = gameObject ;
16+ this . input = gameObject . input ;
17+
18+ this . x = gameObject . input . localX ;
19+ this . y = gameObject . input . localY ;
20+ }
21+
22+ } ) ;
23+
24+ module . exports = DragEvent ;
Original file line number Diff line number Diff line change 1+ var Class = require ( '../../utils/Class' ) ;
2+ var Event = require ( '../../events/Event' ) ;
3+
4+ var DragStartEvent = new Class ( {
5+
6+ Extends : Event ,
7+
8+ initialize :
9+
10+ function DragStartEvent ( pointer , gameObject )
11+ {
12+ Event . call ( this , 'DRAG_START_EVENT' ) ;
13+
14+ this . pointer = pointer ;
15+ this . gameObject = gameObject ;
16+ this . input = gameObject . input ;
17+
18+ this . x = gameObject . input . localX ;
19+ this . y = gameObject . input . localY ;
20+ }
21+
22+ } ) ;
23+
24+ module . exports = DragStartEvent ;
Original file line number Diff line number Diff line change 33module . exports = {
44
55 DOWN : require ( './PointerDownEvent' ) ,
6+ DRAG : require ( './DragEvent' ) ,
7+ DRAG_END : require ( './DragEndEvent' ) ,
8+ DRAG_START : require ( './DragStartEvent' ) ,
69 OUT : require ( './PointerOutEvent' ) ,
710 OVER : require ( './PointerOverEvent' ) ,
811 UP : require ( './PointerUpEvent' )
You can’t perform that action at this time.
0 commit comments