Ricky
Ricky
I don't think this is bun-specific, I'm getting this in a yarn classic monorepo on node `20.9.0`.
Hi @jahirfiquitiva, that's an interesting use case! There's no built-in prop to do this but you could achieve what you need with a bit of extra logic. The most foolproof...
@jahirfiquitiva I've got a basic demo working here https://codesandbox.io/p/sandbox/rcs-aspect-ratio-forked-fngydc?file=%2Fsrc%2FApp.tsx%3A12%2C1-13%2C1 It starts with the default behaviour (shown as `undefined`) then cycles through `undefined|'taller'|'wider'`. I ended up using the `aspect-ratio` CSS prop...
@jahirfiquitiva should be ok now 🙏
@jahirfiquitiva Happy to help 😄 let me know how it goes!
Hi @jahirfiquitiva, Thanks for proving the link to your use case 🙌 I think it's because the slider is still using the bounds of the first image. In the sandbox...
This has been released in [v3](https://github.com/nerdyman/react-compare-slider/releases/tag/v3.0.0)! ```bash npm install react-compare-slider@latest yarn add react-compare-slider@latest pnpm install react-compare-slider@latest ```
This has been released in [v3](https://github.com/nerdyman/react-compare-slider/releases/tag/v3.0.0)! See the [reset on pointer leave](https://react-compare-slider.vercel.app/?path=/story/recipes--reset-on-pointer-leave) and [`useReactCompareSliderRef`](https://react-compare-slider.vercel.app/?path=/story/demos--use-react-compare-slider-ref) examples for usage. ```bash npm install react-compare-slider@latest yarn add react-compare-slider@latest pnpm install react-compare-slider@latest ```
Awesome, thanks for this @zoltan-mihalyi! I'll try it out and let you know if it's good to go. Did you run into a specific error with storybook? Others have had...
@zoltan-mihalyi Ah that's bug in the Storybook test runner, I just had to add a workaround in the CI for it too. If you merge the latest `main` into your...