This sets the isTrusted value in finishScroll event more accurately after fixing the bug in #34.
First, I removed the following logic from the change event.
if (nativeEvent && !isHold) { return; }
Removing this part will not change the behavior, as it was working correctly in the previous situation where isHold was being calculated as true.
And I fixed an issue where _isAnimation was being set incorrectly, affecting the isTrusted value of finishScroll event.
_isAnimation should be set to true when conveyer is not in a holding state and a change event is not fired by the user wheel, assuming that change event has occurred due to internal methods.
Details
This sets the
isTrusted
value infinishScroll
event more accurately after fixing the bug in #34.First, I removed the following logic from the
change
event.if (nativeEvent && !isHold) { return; }
Removing this part will not change the behavior, as it was working correctly in the previous situation whereisHold
was being calculated astrue
.And I fixed an issue where
_isAnimation
was being set incorrectly, affecting theisTrusted
value of finishScroll event._isAnimation
should be set totrue
when conveyer is not in a holding state and achange
event is not fired by the user wheel, assuming thatchange
event has occurred due to internal methods.