summaryrefslogtreecommitdiff
path: root/apps/mozilla/moz_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mozilla/moz_main.c')
-rw-r--r--apps/mozilla/moz_main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c
index e20165bc..afffbe86 100644
--- a/apps/mozilla/moz_main.c
+++ b/apps/mozilla/moz_main.c
@@ -621,8 +621,8 @@ MozWinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
case SB_BOTTOM: si.nPos = si.nMax; break;
case SB_TOP: si.nPos = 0; break;
- case SB_LINEUP: si.nPos -= 30; break;
- case SB_LINEDOWN: si.nPos += 30; break;
+ case SB_LINEUP: si.nPos -= 50; break;
+ case SB_LINEDOWN: si.nPos += 50; break;
case SB_PAGEUP: si.nPos -= si.nPage; break;
case SB_PAGEDOWN: si.nPos += si.nPage; break;
case SB_THUMBTRACK: si.nPos = si.nTrackPos; break;
@@ -641,6 +641,13 @@ MozWinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return 0;
+ case WM_MOUSEWHEEL:
+ if ((signed short)HIWORD(wParam) > 0)
+ SendMessage(hwnd, WM_VSCROLL, MAKELONG(SB_LINEUP, 0), 0);
+ else
+ SendMessage(hwnd, WM_VSCROLL, MAKELONG(SB_LINEDOWN, 0), 0);
+ break;
+
case WM_KEYDOWN:
sendmsg = 0xFFFF;