提交 da5f8383 编写于 作者: H Howard Hung

Fix #55470

上级 9e4b6560
......@@ -513,12 +513,8 @@ class InlineImageView {
firstZoom();
}
let delta = e.deltaY < 0 ? 1 : -1;
let delta = e.deltaY > 0 ? 1 : -1;
// Pinching should increase the scale
if (e.ctrlKey && !isScrollWheelKeyPressed) {
delta *= -1;
}
updateScale(scale as number * (1 - delta * InlineImageView.SCALE_PINCH_FACTOR));
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册