Bug 444851 - Canvas (StyledText) does not support horizontal scroll wheel on Windows
Summary: Canvas (StyledText) does not support horizontal scroll wheel on Windows
Status: CLOSED DUPLICATE of bug 205137
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 10:34 EDT by Markus Keller CLA
Modified: 2020-05-01 16:14 EDT (History)
3 users (show)

See Also:


Attachments
naive attempt to implement Scrollable.wmScrollHWheel (no fix) (5.05 KB, patch)
2014-09-23 10:35 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2014-09-23 10:34:37 EDT
Canvas (and hence also StyledText) does not support the horizontal scroll wheel on Windows.

I first thought the problem was just that Scrollable#WM_MOUSEHWHEEL(long, long) is not implemented (in a similar way as the vertical WM_MOUSEWHEEL). But when I added that method and Scrollable#wmScrollHWheel(..), the canvas content only moved once when I tilted the wheel sideways. It looks like Windows only sends a single WM_MOUSEHWHEEL and then a sequence of WM_HSCROLL events while I hold the wheel sideways. When I spin the wheel vertically, I get a WM_MOUSEWHEEL followed by a WM_VSCROLL for each notch.

This is with a Logitech mouse and http://antibody-software.com/web/software/software/wizmouse-makes-your-mouse-wheel-work-on-the-window-under-the-mouse/
Comment 1 Markus Keller CLA 2014-09-23 10:35:15 EDT
Created attachment 247302 [details]
naive attempt to implement Scrollable.wmScrollHWheel (no fix)
Comment 2 Rolf Theunissen CLA 2020-05-01 16:14:15 EDT

*** This bug has been marked as a duplicate of bug 205137 ***