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: ->
|
||||
@selectAddThangType null
|
||||
@surface.destroy()
|
||||
$(document).bind 'contextmenu', @preventDefaultContextMenu
|
||||
super()
|
||||
|
||||
onViewSwitched: (e) ->
|
||||
|
@ -426,6 +427,7 @@ module.exports = class ThangsTabView extends View
|
|||
@$el.find('.thangs-column').show()
|
||||
|
||||
preventDefaultContextMenu: (e) ->
|
||||
return unless $(e.target).closest('#canvas-wrapper').length
|
||||
e.preventDefault()
|
||||
|
||||
onSpriteContextMenu: (e) ->
|
||||
|
|
Loading…
Reference in a new issue