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.
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.
Issue with using zoom methods and mouse/keyboard shortcuts
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Issue with using zoom methods and mouse/keyboard shortcuts
Hi,
Thank you for reporting this issue!
I just uploaded the fix. Please download WebView4Delphi from GitHub again.
Thank you for reporting this issue!

I just uploaded the fix. Please download WebView4Delphi from GitHub again.
Re: Issue with using zoom methods and mouse/keyboard shortcuts
Thank you, I can confirm it is working correctly now