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

Not working on Scaled Div #314

Open
mastering0409 opened this issue Feb 20, 2024 · 0 comments
Open

Not working on Scaled Div #314

mastering0409 opened this issue Feb 20, 2024 · 0 comments

Comments

@mastering0409
Copy link

react-slider is not working properly on scaled div.
Can you please help me on this?

<div
  style={{
    transform: `scale(${(windowSize.width / 1920) * 0.85}, ${
      (windowSize.height / 1080) * 0.85
    })`,
    transition: "all",
    transitionDelay: "150",
    width: 1920,
    height: 1080,
  }}
>
  <ReactSlider
    className="horizontal-slider w-[100px] h-4 cursor-pointer rounded-full flex items-center relative"
    min={0}
    max={100}
    value={videoSound}
    onChange={(value) => setVideoSound(Number(value))}
    step={1}
    thumbActiveClassName="bg-[#DDAE51] h-3"
    thumbClassName="w-4 h-3 bg-[#DDAE51] rounded-full"
    trackClassName-0="track-0"
    trackClassName-1="track-1"
  />
</div>
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