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

MinimumTrack is sometimes broken. #407

Closed
khj3132 opened this issue Jun 22, 2023 · 0 comments
Closed

MinimumTrack is sometimes broken. #407

khj3132 opened this issue Jun 22, 2023 · 0 comments

Comments

@khj3132
Copy link

khj3132 commented Jun 22, 2023

The slider's minimumTrack is sometimes broken. The minimumTrack is in a strange place, not on top of the main track. This doesn't happen all the time, just occasionally. I don't know under what circumstances this happens though. Can you tell me what the problem is?

IMG_0231
IMG_0232

react-native: 0.67.5
react-native-slider: 2.1.0

This is our slider code.

       <Slider
            minimumValue={0}
            maximumValue={MAX_VOLUME}
            step={1}
            trackClickable={true}
            thumbTouchSize={styles.sliderThumbSize}
            containerStyle={styles.slider}
            thumbStyle={styles.sliderThumb}
            trackStyle={sliderTrackStyles(volumeSliderPressed).sliderTrack}
            maximumTrackTintColor={Colors.medium_40}
            minimumTrackTintColor={
              unavailableStatus || (!volumeSliderPressed &&
                  (volumeInfo?.current === 0 || volumeInfo?.mute))
                ? Colors.medium_40
                : Colors.dark_100
            }
            value={volumeInfo?.current}
            renderTrackMarkComponent={
              volumeInfo?.max !== MAX_VOLUME
                ? renderTrackMarkComponent
                : undefined
            }
            trackMarks={(volumeInfo && [volumeInfo?.max - 0.5]) || []}
            trackRightPadding={10}
            onSlidingStart={onSlidingStart}
            onSlidingComplete={onSlidingComplete}
       />
@khj3132 khj3132 closed this as completed Jun 29, 2023
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

No branches or pull requests

1 participant