| Summary: | ScrollBar SelectionEvent detail field not being set correctly at end of a drag | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thomas Kockerbauer <tkoecker> | ||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas Kockerbauer
Created attachment 176942 [details]
This patch should fix the problem
Not sure why they got this wrong in bug 104779. I see your code makes sense, good patch. I'll run a quick test and release it. Thank you very much. On my machine this always work. SWT.DRAG == GTK_SCROLL_JUMP == 1 and I always was receive a gtk_change_value (not followed by gtk_value_changed) before the key up event-after. -- In your case, I believe you are not getting the last gtk_change_value, so the code that always sets detail = NONE (without testing dragSent) is burning you. The confusing part is need of the dragSent flag, it also wants to make sure the user gets at least one detail=DRAG before sending a detail=NONE (is case gtk_value_changed is never called: the user click the thumb and hold, but doesn't move, then released the button). Anyhow, your code is correct. Fixed in HEAD > 20100820 |