Skip to content

Commit

Permalink
Fix typo in zoom handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Mar 5, 2022
1 parent 7a04544 commit 61b40fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function createWindow() {
mainWindow.webContents.on('zoom-changed', (event, zoomDirection) => {
const currentZoom = mainWindow.webContents.getZoomFactor()
if (zoomDirection === 'in') {
win.webContents.setZoomFactor(currentZoom + 0.1)
mainWindow.webContents.setZoomFactor(currentZoom + 0.1)
}
if (zoomDirection === 'out' && currentZoom > 0.2) {
mainWindow.webContents.setZoomFactor(currentZoom - 0.1)
Expand Down

0 comments on commit 61b40fe

Please sign in to comment.