jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.41k stars 713 forks source link

[Question] What is the proper way to make sure the editor canvas will translate on all directions with no limit? #833

Closed ElvisAns closed 3 months ago

ElvisAns commented 3 months ago

I have everything working except the case when i want to drag the editor in unused zone, it translate to a certain distance then it stop, i feel like there is a maximum width while i did not set one....

https://github.com/jerosoler/Drawflow/assets/35831811/2f3cc08f-3db8-42e9-b41e-7f8c7bf17a90

jerosoler commented 3 months ago

That shouldn't be like that. Look at the demo. This does not happen. Make sure the drawflow container does not have any CSS classes. It could be because of that:

ElvisAns commented 3 months ago

Thank you @jerosoler It worked when i set the first class to be parent-drawflow