Fr0sT-Brutal / Delphi_OSMMap

Visual control for Delphi and Lazarus to display OSM map
Mozilla Public License 2.0
61 stars 23 forks source link

Zoom by mouse wheel and hide scrollbars #10

Open array81 opened 2 years ago

array81 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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