Commit 9ead4c5d authored by Albert Gräf's avatar Albert Gräf
Browse files

Zoom wheel scroll action needs cmd/ctrl modifier in canvas window (fixes #94).

parent a2e5b2e4
......@@ -592,10 +592,12 @@ var canvas_events = (function() {
// MouseWheel event for zooming
document.addEventListener("wheel", function(evt) {
if (evt.deltaY < 0) {
nw_window_zoom(name, +1);
} else if (evt.deltaY > 0) {
nw_window_zoom(name, -1);
if (pdgui.cmd_or_ctrl_key(evt)) {
if (evt.deltaY < 0) {
nw_window_zoom(name, +1);
} else if (evt.deltaY > 0) {
nw_window_zoom(name, -1);
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment