Delphi_OSMMap icon indicating copy to clipboard operation
Delphi_OSMMap copied to clipboard

Zoom by mouse wheel and hide scrollbars

Open array81 opened this issue 3 years ago • 4 comments

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.

array81 avatar Oct 01 '21 19:10 array81

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

AlexHausauer avatar Oct 01 '21 21:10 AlexHausauer

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

Fr0sT-Brutal avatar Oct 04 '21 07:10 Fr0sT-Brutal

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.

array81 avatar Oct 04 '21 20:10 array81

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

Fr0sT-Brutal avatar Oct 05 '21 07:10 Fr0sT-Brutal