Skip to content

Fix thumb translateX not updating after single tap on slider #94

@phuoctai12t

Description

@phuoctai12t

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-awesome-slider@2.9.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-awesome-slider/src/slider.tsx b/node_modules/react-native-awesome-slider/src/slider.tsx
index 697be51..3894c0b 100644
--- a/node_modules/react-native-awesome-slider/src/slider.tsx
+++ b/node_modules/react-native-awesome-slider/src/slider.tsx
@@ -892,6 +892,7 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
           }
         })
         .onFinalize(() => {
+          isScrubbingInner.value = false;
           if (isScrubbing) {
             isScrubbing.value = false;
           }

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions