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

Splitter jump when start dragging #2109

Open
lmgonzalves opened this issue Dec 15, 2024 · 0 comments
Open

Splitter jump when start dragging #2109

lmgonzalves opened this issue Dec 15, 2024 · 0 comments

Comments

@lmgonzalves
Copy link

🐛 Bug report

In the Splitter component there is a jump when start dragging the resize trigger. See the video below:

splitter-video.mov

Recorded the video directly in the website demo example.

💥 Steps to reproduce

  1. Go to https://zagjs.com/components/react/splitter.
  2. Drag and drop the resize trigger near to any edge.
  3. Start dragging again to see the jump.

💻 Link to reproduction

The issue is easily reproducible in the website and the Stackblitz demo.

🧐 Expected behavior

The drag operations should starts with no jumping.

🧭 Possible Solution

I guess the issue is related with the maths involved in calculating the sizes, but not investigated further so far.

🌍 System information

Software Version(s)
Zag Version 0.78.3
Browser Firefox (133.0.3), Chrome (131.0.6778.140)
Operating System macOS 15.2

📝 Additional information

Thanks and congrats for this awesome project! 🫶

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