tabs
tabs copied to clipboard
fix: Memory leak caused by zombie event listeners in useTouchMove.ts
The code was smelly and it causes a memory leak, even if component is unmounted it will keep the whole context inside Detached Event Listener
Summary by CodeRabbit
-
优化
- 改进了触摸和滚轮事件的监听与清理机制,提升了性能和稳定性。用户体验保持一致,无需额外操作。