mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed a selection bug.
This commit is contained in:
parent
01a43bb3d7
commit
00a7de12c9
1 changed files with 6 additions and 3 deletions
|
@ -207,9 +207,12 @@ module.exports = class ThangsTabView extends View
|
|||
else if @addThangSprite
|
||||
# We clicked on the background when we had an add Thang selected, so add it
|
||||
@addThang @addThangType, @addThangSprite.thang.pos
|
||||
else
|
||||
# We clicked on the background, so deselect anything selected
|
||||
@thangsTreema.deselectAll()
|
||||
|
||||
# Commented out this bit so the extant thangs treema editor can select invisible thangs like arrows.
|
||||
# Couldn't spot any bugs... But if there are any, better come up with a better solution.
|
||||
# else
|
||||
# # We clicked on the background, so deselect anything selected
|
||||
# @thangsTreema.deselectAll()
|
||||
|
||||
selectAddThang: (e) =>
|
||||
if e then target = $(e.target) else target = @$el.find('.add-thangs-palette') # pretend to click on background if no event
|
||||
|
|
Loading…
Reference in a new issue