Bug 78558 - [consistency] Slider fires two selection events on single click
Summary: [consistency] Slider fires two selection events on single click
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords: consistency
Depends on:
Blocks:
 
Reported: 2004-11-12 17:00 EST by Grant Gayed CLA
Modified: 2008-06-03 11:55 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 Grant Gayed CLA 2004-11-12 17:00:44 EST
- run the ControlExample, Slider/Scale tab
- turn on the Selection listener
- click on the thumb of the example Slider
  -> on win32 two selection events are fired (details 0 and 1 respectively)
  -> everywhere else one selection event (detail 0) is fired
Comment 1 Grant Gayed CLA 2004-11-12 17:04:54 EST
slight correction: on win32 the details in order are 1,0 not 0,1
Comment 2 Steve Northover CLA 2004-11-15 15:47:21 EST
SN to investigate.  Window has the concept of "selection end" for sliders that 
doesn't exist on other platforms.  This could be what we are (incorrectly) 
seeing.
Comment 3 Steve Northover CLA 2004-11-24 17:15:42 EST
Fixed > 20041124
Comment 4 Steve Northover CLA 2004-11-24 17:16:42 EST
... no, really fixed.
Comment 5 Steve Northover CLA 2005-06-17 15:12:18 EDT
Fixing this bug introduced bug 100610.
Comment 6 Steve Northover CLA 2005-06-17 15:13:13 EDT
It turns out that all platforms have the concept of selection end but Windows 
sends both a drag and a selection end when the scroll bar is clicked and not 
moved.  Others just send the end.
Comment 7 Steve Northover CLA 2005-06-17 15:21:38 EDT
Actually, the extra event is a SWT.DRAG.
Comment 8 Steve Northover CLA 2008-06-03 11:55:56 EDT
"Selection end" is now supported on all platforms.  The extra SWT.DRAG is not harmful.