retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
10.04k stars 652 forks source link

Rete js crashes on Safari when a scrollable container is present #716

Open k4v1cs opened 1 day ago

k4v1cs commented 1 day ago

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

In Safari the performance becomes vary bad, other browsers are not affected on the same device.

Expected behavior

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