Open
Description
Describe the bug
When there is a textarea with larger content present, so it has a scrollbar, the performance of Rete js greatly suffers, the app becomes unresponsive and in some cases crashes with out of memory error.
Example: https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
Recording of the issue (with lambdatest): https://github.com/user-attachments/assets/f572f5a3-263e-4e0e-ae7f-7f5cad4dffe5
The issue was also observed on a physical device.
Example to reproduce
https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
How to reproduce
- Have a larger number of nodes loaded in the editor
- Have a container displayed with scrollable content
In Safari the performance becomes vary bad, other browsers are not affected on the same device.
Expected behavior
- The performance should be the same as without the scrollable container
Dependencies
https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
Platform
Safari 17 (MacOS Sonoma)
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct