-
-
Notifications
You must be signed in to change notification settings - Fork 173
Bug: Svelvet canvas "teleporting" on initial pan and edges are displaced #525
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
Comments
I am also having a teleporting issue mine is a bit different. My project is essentially purely Svelvet on the front end. I am dragging nodes from a menu and creating them on the canvas dynamically. (they are logic gates) If I click the If I DRAG the '.svelvet-wrapper' before placing any nodes, the view on the canvas will jump to the same place that the first node goes when you do not interact with the canvas prior to interacting with a node. (teleport view) I suspect it might have something to do with the CSS I have applied to the svelvet-wrapper. but that may not be the right idea.
|
I discovered a temporary fix for the teleport on the initial panning
Update: The edge displacement can be temporarily fixed with this
However I did not have the edge displacement bug in the application build only on localhost did I have this issue, I am using "vite": "^6.1.0". |
I'm experiencing the same thing with svelvet svelvet.mp4 |
Experiencing the same. I'm using it with SvelteKit. The edges are not shown or not connected properly to nodes. When I click on nodes, one by one, the edges are properly rendered. Has anyone found a solution? |
Description
In Svelvet 10.0.2, I am unable to pan on the canvas without it changing the position of both the page and the canvas on the first click. Besides, the edges are completely displaced until they get hovered.
Did I implement it incorrectly? I would be very thankful for any assistance.
Screen.Recording.2024-11-20.115439.mp4
Screen.Recording.2024-11-20.115704.mp4
Reproduction
npm i
andnpm run dev
System information
Additional information
No response
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: