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.

Disable zoom with mouse ?

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Disable zoom with mouse ?

Post by thefunkyjoint »

Is there any way to disable the browser's automatic zoom with mouse scrollbar + CTRL ?

Often i do this by mistake...
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Disable zoom with mouse ?

Post by salvadordf »

The CEF project maintainer recommends using JavaScript :
https://magpcss.org/ceforum/viewtopic.php?f=6&t=19768&p=55178
https://stackoverflow.com/questions/56465207/how-can-i-prevent-full-page-zoom-on-mousewheel-event-in-javascript
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Disable zoom with mouse ?

Post by thefunkyjoint »

Thanks for the info. Not a good solution as it requires you to inject code on the page everytime it loads, but it's an alternative anyway.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Disable zoom with mouse ?

Post by dilfich »

And why not try this if you press CTRL to disable the mouse?

Code: Select all

Chromium1KeyEvent
if osEvent.wParam = 17 then ...

Chromium1RenderCompMsg         
aHandled:= True;
Post Reply