Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
bugfix: brush would end resize if mouse moved too fast
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbolin committed Jun 1, 2017
1 parent 6db476c commit f64e014
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/containers/brush-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,14 @@ const Helpers = {
}];
},

onMouseLeave() {
return [{
target: "parent",
mutation: () => ({ isPanning: false, isSelecting: false })
}];
onMouseLeave(evt) {
if (evt.target.nodeName === "svg") {
return [{
target: "parent",
mutation: () => ({ isPanning: false, isSelecting: false })
}];
}
return [];
}
};

Expand Down

0 comments on commit f64e014

Please sign in to comment.