min icon indicating copy to clipboard operation
min copied to clipboard

Add touch gestures for zooming webpages

Open PalmerAL opened this issue 4 years ago • 3 comments

It looks like Electron has an API for this: https://www.electronjs.org/docs/api/web-contents#contentssetvisualzoomlevellimitsminimumlevel-maximumlevel.

PalmerAL avatar Feb 29 '20 07:02 PalmerAL

Hello, the issue seems not so complicated even for a newbie such as myself. Could someone provide more info on this? Am I correct that it requires a small change like:

contents.setVisualZoomLevelLimits(1, 3)

somewhere in the code? If it is really not complicated I am ready to try and add the feature.

deadb0d4 avatar Apr 30 '20 15:04 deadb0d4

The code would go inside createView in viewManager.js. However, when I tried this before, the zoom limits get reset every time the tab's process is re-created, which can happen when you navigate to a new page. I think you could probably put that line inside a did-navigate event listener, but I haven't tried it yet.

PalmerAL avatar Apr 30 '20 18:04 PalmerAL

I second this request. Min browser lacks this feature very much.

EugeneTarasenko avatar Jul 30 '22 18:07 EugeneTarasenko