https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0faa1561a65da174ce045…
commit 0faa1561a65da174ce04587a816a99a1e46d6089
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Dec 8 15:03:18 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Fri Dec 8 15:03:18 2023 +0900
[SHIMGVW] Check VK_CONTROL on ImageView_OnMouseWheel
CORE-19358
---
dll/win32/shimgvw/shimgvw.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/shimgvw/shimgvw.c b/dll/win32/shimgvw/shimgvw.c
index 0d9d3dc8342..800f60d20d5 100644
--- a/dll/win32/shimgvw/shimgvw.c
+++ b/dll/win32/shimgvw/shimgvw.c
@@ -962,7 +962,8 @@ ImageView_OnMouseWheel(HWND hwnd, INT x, INT y, INT zDelta, UINT
fwKeys)
{
if (zDelta != 0)
{
- ZoomInOrOut(zDelta > 0);
+ if (GetKeyState(VK_CONTROL) < 0)
+ ZoomInOrOut(zDelta > 0);
}
}