Only emit drag end after dragging, not clicks

This commit is contained in:
Jess Telford 2016-11-05 14:14:25 +11:00
parent 2dbe80d4d9
commit fb87db0f3d
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased][]
### Fixed
- Only emit drag end event after an object dragged, not after every mouse up
## [1.3.2][] - 2016-11-05
### Added

View file

@ -500,6 +500,10 @@ const {didMount, didUnmount} = (function getDidMountAndUnmount() {
function onMouseUp({clientX, clientY}) {
if (!draggedElement) {
return;
}
cleanUpPositionLog();
const velocity = {