Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Draggable shouldn't trigger dragEnd without first dragging #1211

Merged
merged 1 commit into from Nov 23, 2023

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Nov 23, 2023

  • the onDragEnd was called every time a cell was clicked even when user was not even dragging, we should make sure to only trigger onDragEnd if a drag actually started to avoid triggering too many events for no reasons

- the `onDragEnd` was called every time a cell was clicked even when user was not even dragging, we should make sure to only trigger `onDragEnd` if a drag actually started to avoid triggering too many events for no reasons
@ghiscoding ghiscoding changed the base branch from master to next November 23, 2023 20:31
@ghiscoding ghiscoding changed the title Bugfix/draggable dragend without start fix: Draggable shouldn't trigger dragEnd without first dragging Nov 23, 2023
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (182bfc6) 86.12% compared to head (a035ffd) 86.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1211      +/-   ##
==========================================
+ Coverage   86.12%   86.12%   +0.01%     
==========================================
  Files         208      208              
  Lines       21228    21229       +1     
  Branches     7059     7060       +1     
==========================================
+ Hits        18280    18281       +1     
  Misses       2948     2948              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding merged commit 47cb36e into next Nov 23, 2023
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/draggable-dragend-without-start branch November 23, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants