Identify and stop event

Hello,

I’m trying to stop zoom-out event on the default image viewer page, but I’m having hard time doing that.

For example, open any image, for example:

Click it, and then try to prevent zoom-out when clicking it again.
There seems to be no mouseup event registered and even if I register one and stop propagation and prevent default, nothing helps.

How can I identify what event is doing this?

Pretty sure you can’t interact with the default image viewer page at all (as in, you can’t insert a content script). You could however control the zoom level via tab properties?

You can, my ScrollAnywhere addon is working there but when user uses the left mouse scrolling then it triggers the zoom-out which I want to prevent.

Also there is one cool add-on “Better Image Viewer” that seems to be fixing it somehow, but I’m unable to identify how: