mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 21:43:18 +00:00
webview: Enable zooming with the mouse wheel.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -294,6 +294,11 @@ export default class WebView {
|
||||
this.unsupportedDismissed = true;
|
||||
this.$unsupported.hidden = true;
|
||||
});
|
||||
|
||||
webContents.on("zoom-changed", (event, zoomDirection) => {
|
||||
if (zoomDirection === "in") this.zoomIn();
|
||||
else if (zoomDirection === "out") this.zoomOut();
|
||||
});
|
||||
}
|
||||
|
||||
private getBadgeCount(title: string): number {
|
||||
|
||||
Reference in New Issue
Block a user