mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed the region and point choosers for the level editor.
This commit is contained in:
parent
ea73d91a6b
commit
c86feb13e8
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue