Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

isUnderThreshold returns true if the card didn't move, fix #83 #84

Closed
wants to merge 2 commits into from
Closed

isUnderThreshold returns true if the card didn't move, fix #83 #84

wants to merge 2 commits into from

Conversation

tiangolo
Copy link

isUnderThreshold() returns true if the card didn't move, fix #83

It checks if the variable this.thresholdAmount exists before deciding that it is not under the threshold (avoiding triggering the onDestroy handler while the card didn't even move).

More details are on the issue: #83

@tiangolo
Copy link
Author

The relevant change is in this line: 2e095c8#diff-d3c3f04fc7fda3f526ff4a66bdc888ebR129

All the other changes are just re-formatting.

@tiangolo tiangolo closed this by deleting the head repository Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isUnderThreshold returns false for a card that didn't moved
1 participant