Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ScrollView not scrolling down #722

Open
br0hgue opened this issue Mar 20, 2023 · 1 comment
Open

[BUG] ScrollView not scrolling down #722

br0hgue opened this issue Mar 20, 2023 · 1 comment
Labels

Comments

@br0hgue
Copy link

br0hgue commented Mar 20, 2023

Describe the bug
When using a mouse, the ScrollView does not scroll down, only up. When the mouse is scrolled down, nothing happens.
The scroll does work using the arrow keys.

To Reproduce
Run the scroll.rs example

Expected behavior
For the box to scroll down.

Environment

  • Operating system used: macOS Monterey
  • Backend used: ncurses
  • Current locale: en_US.UTF-8
  • Cursive version: 0.20.0 from crates.io
@br0hgue br0hgue added the bug label Mar 20, 2023
@gyscos
Copy link
Owner

gyscos commented Mar 27, 2023

Hi, and thanks for the report!

Indeed, it looks like the wheel down event is not properly parsed. Running the key_codes event shows it is parsed as middle button press/hold events. Will need to fix that in our ncurses backend wrapper.

In the meantime you can try a different backend like crossterm (disable the default features, then enable crossterm-backend).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants