Only emit drag end after dragging, not clicks
This commit is contained in:
parent
2dbe80d4d9
commit
fb87db0f3d
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -500,6 +500,10 @@ const {didMount, didUnmount} = (function getDidMountAndUnmount() {
|
|||
|
||||
function onMouseUp({clientX, clientY}) {
|
||||
|
||||
if (!draggedElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
cleanUpPositionLog();
|
||||
|
||||
const velocity = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue