min
min copied to clipboard
Add touch gestures for zooming webpages
It looks like Electron has an API for this: https://www.electronjs.org/docs/api/web-contents#contentssetvisualzoomlevellimitsminimumlevel-maximumlevel.
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.
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.
I second this request. Min browser lacks this feature very much.