Skip to content

Fix: onChange is not called for tap when on Android #367

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

Merged
merged 2 commits into from
Apr 19, 2022

Conversation

BartoszKlonowski
Copy link
Member

This pull request fixes #366

The solution is to:

  • indicate the user action as a source of event depending on the current sliding status
    Having the fromUser set to fixed value of false was causing the event to be recognized as avoidable.
  • always send the onChange event no matter if fromUser is set
    This check is now removed as it was found to be redundant and could introduce conflicts for the sliding vs taping.

Please see below presentation of the working fix:
OnChangeAndroidFixResult

@BartoszKlonowski BartoszKlonowski force-pushed the fix/onchange-android-tap branch from e16d25b to 76e7462 Compare April 10, 2022 03:40
@BartoszKlonowski BartoszKlonowski force-pushed the fix/onchange-android-tap branch from 76e7462 to a0bf46a Compare April 10, 2022 03:49
@BartoszKlonowski
Copy link
Member Author

CC: @Hellhiem

Copy link

@Hellhiem Hellhiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm, it's working. 🚀

@BartoszKlonowski BartoszKlonowski added the platform: Android Issue related to Android platform label Apr 15, 2022
@pdaus1405
Copy link

@BartoszKlonowski @Hellhiem
when will a new version be released with this pr?

@BartoszKlonowski
Copy link
Member Author

@pdaus1405 I still have some of the fixes waiting to be merged, but the v4.2.2 will be published not later than the end of this week (Friday).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Android Issue related to Android platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tap on slider is not triggering onValueChange
3 participants