mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed the context-menu preventer in the level editor.
This commit is contained in:
parent
bb53e963b6
commit
b238ccaf27
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,7 @@ module.exports = class ThangsTabView extends View
|
||||||
destroy: ->
|
destroy: ->
|
||||||
@selectAddThangType null
|
@selectAddThangType null
|
||||||
@surface.destroy()
|
@surface.destroy()
|
||||||
|
$(document).bind 'contextmenu', @preventDefaultContextMenu
|
||||||
super()
|
super()
|
||||||
|
|
||||||
onViewSwitched: (e) ->
|
onViewSwitched: (e) ->
|
||||||
|
@ -426,6 +427,7 @@ module.exports = class ThangsTabView extends View
|
||||||
@$el.find('.thangs-column').show()
|
@$el.find('.thangs-column').show()
|
||||||
|
|
||||||
preventDefaultContextMenu: (e) ->
|
preventDefaultContextMenu: (e) ->
|
||||||
|
return unless $(e.target).closest('#canvas-wrapper').length
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
onSpriteContextMenu: (e) ->
|
onSpriteContextMenu: (e) ->
|
||||||
|
|
Loading…
Reference in a new issue