Skip to content

Conversation

@joouha
Copy link
Contributor

@joouha joouha commented Mar 8, 2022

Hello,

This PR adds support for mouse events in window margins (fixing #236)

It also adds mouse support for ScrollBarMargin (fixing #284).

I've also implemented smoother scrollbar movement using block characters.

Here is a quick video showing the updated ScrollBarMargin
Peek.2022-03-08.10-31.mp4

@jonathanslenders
Copy link
Member

Hi @joouha, thanks for this! Many good things here.
I still need a bit of time to review this.

Can you already apply "black" so that the pipeline will pass?

@joouha joouha force-pushed the scrollbar-mouse-support branch from df59760 to 7b78902 Compare March 9, 2022 23:03
@joouha
Copy link
Contributor Author

joouha commented Mar 9, 2022

Done!

@joouha joouha force-pushed the scrollbar-mouse-support branch 2 times, most recently from c0cc874 to d42b612 Compare March 18, 2022 07:43
Squashed fixes:
- Do not allow scrollbar thumb beyond track limits
- Hide thumb but show track & arrows if we cannot scroll.
- This replicates the original behaviour of the scrollbar margin.
- Prevent division-by-zero error
- Fix typing
@joouha joouha force-pushed the scrollbar-mouse-support branch from d42b612 to 516df10 Compare March 19, 2022 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants