Skip to content

Commit

Permalink
Fix wrong color eraser on background change
Browse files Browse the repository at this point in the history
In dotstorm, changing the background was leading to weird results.
Fixes half of issue #27.
  • Loading branch information
yourcelf committed May 9, 2013
1 parent 1884f9c commit d745c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/dotstorm/assets/dotstorm/js/editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ds.IdeaCanvas extends Backbone.View
setTimeout (=> @delegateEvents()), 100

redraw: =>
@lastTool = null
for action in @actions
@drawAction(action)

Expand Down Expand Up @@ -363,6 +364,7 @@ class ds.EditIdea extends Backbone.View

handleChangeBackgroundColor: (event) =>
@changeBackgroundColor $(event.currentTarget).css("background-color")
@canvas.redraw()
return false

changeBackgroundColor: (color) =>
Expand Down

0 comments on commit d745c06

Please sign in to comment.