Fixed the region and point choosers for the level editor.

This commit is contained in:
Scott Erickson 2014-02-26 15:56:05 -08:00
parent ea73d91a6b
commit c86feb13e8
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@ module.exports = class PointChooser extends CocoClass
super()
@buildShape()
@options.stage.addEventListener 'stagemousedown', @onMouseDown
@options.camera.dragDisabled = true
destroy: ->
@options.stage.removeEventListener 'stagemousedown', @onMouseDown

View file

@ -7,6 +7,7 @@ module.exports = class RegionChooser extends CocoClass
@options.stage.addEventListener 'stagemousedown', @onMouseDown
@options.stage.addEventListener 'stagemousemove', @onMouseMove
@options.stage.addEventListener 'stagemouseup', @onMouseUp
@options.camera.dragDisabled = true
destroy: ->
@options.stage.removeEventListener 'stagemousedown', @onMouseDown