Skip to content

Commit 70f0170

Browse files
committed
webview: Enable zooming with the mouse wheel.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent bc75eba commit 70f0170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/renderer/js/components/webview.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ export default class WebView {
294294
this.unsupportedDismissed = true;
295295
this.$unsupported.hidden = true;
296296
});
297+
298+
webContents.on("zoom-changed", (event, zoomDirection) => {
299+
if (zoomDirection === "in") this.zoomIn();
300+
else if (zoomDirection === "out") this.zoomOut();
301+
});
297302
}
298303

299304
private getBadgeCount(title: string): number {

0 commit comments

Comments
 (0)