Comfy-Org / Comfy-Org/ComfyUI_frontend

[Bug]: Scroll event leak after scrolling to the top of a text widget

Open
#3,990 12 comments 1 reaction 0 assignees View on GitHub
verified bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Frontend Version

https://github.com/user-attachments/assets/130005f3-34cd-48d7-951d-69768ccec06e

### Expected Behavior

When scrolling the text (text being scrollable), the scroll event should never be sent into the canvas layer

If text is not scrollable (smallthe amount of text), then scroll should work only in canvas

### Actual Behavior

Event current leaks after scrolling to the top or bottom of a text widget

### Steps to Reproduce

Add Preview Any, and add a bunch of text, then scroll

### Debug Logs

```powershell
None
```

### Browser Logs

None

### Setting JSON

None

### What browsers do you use to access the UI ?

_No response_

### Other Information

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3990-Bug-Scroll-event-leak-after-scrolling-to-the-top-of-a-text-widget-2006d73d365081ed80f9e9035ad13f3c) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.