Bug 78559

Summary: [consistency] Slider fires two Selection events before MouseDown
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Veronika Irvine <veronika_irvine>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: consistency
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Grant Gayed CLA 2004-11-12 17:08:15 EST
- run the ControlExample, Slider/Scale tab
- turn on the MouseDown and Selection listeners
- click on the example Slider's thumb
  -> on OSX the following is fired: Selection, Selection, MouseDown
  -> on win32 the following is fired: MouseDown, Selection, Selection (bug 78558)
  -> everywhere else: MouseDown, Selection
Comment 1 Steve Northover CLA 2004-11-15 15:48:36 EST
Looks like a bug.  Should be MouseDown, Selection everywhere to be consistent 
with controls such as List.
Comment 2 Steve Northover CLA 2004-11-15 15:49:58 EST
To be exact, Selection should follow MouseDown for native controls.  It is 
unspecified whether Selection comes before MouseUp.
Comment 3 Veronika Irvine CLA 2004-11-24 15:31:19 EST
Fixed so that we now get MouseDown, Selection detail = 1, ... Selection detail 
= 1, Selection detail = 0, Mouse Up.

Needed to add the tracking code to Slider.  In addition to fixing the bug 
reported here, this fixed the fact that there was no mouse up.

Fixed for 3.1 in HEAD > Nov 24.