summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/mozilla/moz_main.c11
-rw-r--r--apps/mozilla/moz_winres.rc2
2 files changed, 10 insertions, 3 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;
diff --git a/apps/mozilla/moz_winres.rc b/apps/mozilla/moz_winres.rc
index 95b272c4..736efb5e 100644
--- a/apps/mozilla/moz_winres.rc
+++ b/apps/mozilla/moz_winres.rc
@@ -11,7 +11,7 @@ BEGIN
BEGIN
VALUE "ProductName", "GhostPDF Plug-in\0"
VALUE "OriginalFilename", "npmupdf.dll\0"
- VALUE "FileDescription", "The GhostPDF plugin allows you to browse PDF files with a slightly less insane user interface than the Adobe Reader :)\0"
+ VALUE "FileDescription", "The GhostPDF plugin allows you to browse PDF files with a simple light-weight scrolling interface.<br>See <a href=""http://ghostpdf.com/new.html"">ghostpdf.com</a> for more information.\0"
VALUE "MIMEType", "application/pdf|application/mupdf\0"
VALUE "FileExtents", "pdf|foo"
VALUE "FileOpenName", "Acrobat PDF File|Acrobat PDF File"