Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Issue with using zoom methods and mouse/keyboard shortcuts

Post Reply
hannes.nz
Posts: 2
Joined: Mon Aug 05, 2024 8:36 pm

Issue with using zoom methods and mouse/keyboard shortcuts

Post by hannes.nz »

I have buttons to zoom in and out which use the IncZoomStep and DecZoomStep methods.

However, when using these actions along with using the mouse (Ctrl + scroll) or keyboard shortcuts (Ctrl +, Ctrl -) the zoom level doesn't take what was last set to...

I.E.
Zooming in using the methods first, then using mouse or keyboard to zoom back out again works fine, it zooms from the last zoom level that was set when using the methods..., but when I then use the method to zoom in or out, it goes back to the zoom level that was last used by the methods, instead of the zoom level left after zooming using mouse/keyboard.

So it seems like the zoom step variable is not updated when using the mouse/keyboard, and when using the method, it resets the zoom back and then zooms in/out.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Issue with using zoom methods and mouse/keyboard shortcuts

Post by salvadordf »

Hi,

Thank you for reporting this issue! :)

I just uploaded the fix. Please download WebView4Delphi from GitHub again.
hannes.nz
Posts: 2
Joined: Mon Aug 05, 2024 8:36 pm

Re: Issue with using zoom methods and mouse/keyboard shortcuts

Post by hannes.nz »

Thank you, I can confirm it is working correctly now
Post Reply