Skip to content

Commit

Permalink
fix(textAngular): fix resize image issue
Browse files Browse the repository at this point in the history
When resizing an image, the mousedown event does not unbind after each
selection of image so after selecting a few images and then resizing,
all images selected will resize.  Forcing removal of all mousedown
events before the new event is bound resolves this as no other mousedown
event should be bound at this point.
  • Loading branch information
jesusfreak3 committed Jun 23, 2015
1 parent 1ebc637 commit 52fb20c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ textAngular.directive("textAngular", [
event.preventDefault();
};

scope.displayElements.resize.anchors[3].off('mousedown');
scope.displayElements.resize.anchors[3].on('mousedown', _resizeMouseDown);

scope.reflowResizeOverlay(_el);
Expand Down

0 comments on commit 52fb20c

Please sign in to comment.