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

Zoom by mouse wheel and hide scrollbars #10

Open
array81 opened this issue Oct 1, 2021 · 4 comments
Open

Zoom by mouse wheel and hide scrollbars #10

array81 opened this issue Oct 1, 2021 · 4 comments

Comments

@array81
Copy link

array81 commented Oct 1, 2021

I thing zoom by mouse wheel is a good feature to add on roardmap.

Also hide scrollbars. Now If I try to hide them by TScrollBar properties pan doesn't work.

@AlexHausauer
Copy link

AlexHausauer commented Oct 1, 2021

It's weird, like scaling with the mouse wheel works great, you just need to click on the map to set focus. And if you hide the scrollbars, then the function of dragging the map with the mouse is blocked, since the component is inherited from TScrollBox

@Fr0sT-Brutal
Copy link
Owner

Zooming by wheel works from the beginning - I use it every time myself. Probably you want zoom without a focus, just when a mouse is over a map. I added this to TODO
As for hiding scrollbars, invisible scrollbars don't allow changing their Position. I'll see if I can cheat them somehow but won't promise anything. If you find a way to, I'll inject it

@array81
Copy link
Author

array81 commented Oct 4, 2021

The zooming by wheel doen't works for me. It not a focus problem, if I try to use the mouse wheel the vertical scroll bar moves so I have a vertical pan.

@Fr0sT-Brutal
Copy link
Owner

Maybe you disabled horizontal scrollbar?
Do you try Demo or your own app?

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

No branches or pull requests

3 participants