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

Holding mouse on an arrow in scrollbar can trigger other mouse actions #4071

Closed
DorpsGek opened this issue Aug 22, 2010 · 3 comments
Closed
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

avd opened the ticket and wrote:

Steps to reproduce:

  1. Press an arrow located in the scrollbar and hold it

  2. Move the mouse away to an other item that has a left click action

  3. You should see that the left mouse event of that item is triggered

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4071
@DorpsGek
Copy link
Member Author

avd wrote:

I think the cause of this problem is located in widget.cpp, function ScrollbarClickPositioning (currently lines 92 and 101).

It simply sets the left mouse button not clicked, allowing other actions to be dispatched.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4071#comment8623

@DorpsGek
Copy link
Member Author

Rubidium wrote:

But removing those lines means it will scroll only one item per click instead of many when it's pressed.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4071#comment8927

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r20922


This comment was imported from FlySpray: https://bugs.openttd.org/task/4071

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant