prompt-toolkit/python-prompt-toolkit

Can't scroll dialogs with mouse or mouse wheel, only with keyboard

Opened this issue · 0 comments

Hi there!

When I create a radiolist_dialog that exceeds the screen size, I can scroll its contents using the Up, Down, Page Up, and Page Down keys. However, I am unable to scroll using the mouse wheel or by clicking the dialog's scroll bar.

During a quick debugging session, I noticed that rolling the mouse wheel generates the expected mouse events, but these events appear to be ignored.

Is this an intended behavior? Is it a (known) bug? Or is there a workaround (perhaps with a custom dialog)?

I tested this on Windows 11 (Python 3.11.1) and Ubuntu 22.04.5 (Python 3.10.12).