Skip to content

Commit

Permalink
Add updat event on gradient when handle is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
njbrown committed Dec 28, 2019
1 parent 748fafa commit 506b47d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/properties/GradientProp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,14 @@ export class GradientWidget {
// make handle draggable
self.hitHandle = handle;
self.isNewHandle = true;
if (self.onvaluechanged) self.onvaluechanged(self.gradient);
} else if (self.hitHandle && evt.button == 2) {
// delete handle
self.removeHandle(self.hitHandle);
self.hitHandle = null;
if (self.onvaluechanged) self.onvaluechanged(self.gradient);
}
self.redrawCanvas();
Expand Down

0 comments on commit 506b47d

Please sign in to comment.