Bug 71176 - Mouse Wheel Events going to the wrong View
Summary: Mouse Wheel Events going to the wrong View
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-30 15:33 EDT by Andreas Schildbach CLA
Modified: 2004-08-05 14:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schildbach CLA 2004-07-30 15:33:09 EDT
In Eclipse 3.0 on WindowsXP/SP1 I am experiencing the following bug:

Open at least two views with content that is scrollable (e.g. a large file in
the editor, an all-expanded navigater, etc.).

Activate one view by clicking in it.

Now move the mouse to another view and start rolling the mouse wheel. If you
watch closely, you will notice that the first mouse wheel event will go to the
activated view instead of the one you are hovering over. All subsequent events
go to the correct view though (unless you cross a view boundary again...).
Comment 1 Steve Northover CLA 2004-08-04 18:45:40 EDT
CAR to investigate.  I can't make it happen on my machine.  NOTE:  The Windows 
standard is that the events should go to the control that has focus.
Comment 2 Carolyn MacLeod CLA 2004-08-05 14:41:18 EDT
I get the expected Windows WM_MOUSEWHEEL behavior, which is that all mouse 
wheel events go to the focus control (i.e. the active view) no matter which 
control you are hovering over. Arrow keys go there, too. Try typing some 
arrows to verify which view (control) has keyboard focus.

The behavior you describe as 'correct' (the control under the hover gets mouse 
wheel events) is in fact correct on some other platforms - I notice that 
that's the way GTK works.

I can't imagine how you are able to get a non-focused 'hovered-over' control 
to scroll at all with the wheel (on Windows). Maybe you have some special 
mouse setup that both clicks and scrolls, giving focus first, then sending 
wheel events to the focus control?

I am closing this bug as invalid - please reopen it if you get a repeatable 
test case that shows a non-focus control scrolling with the wheel mouse. 
(Also, please try your test case on another machine before reopening).
One more thing - please make sure your mouse driver is the latest version, and 
if you see the problem, please list your mouse driver version. Thanks!