Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 102902

Summary: Disabled ScrollBar responds to mouse scroll wheel
Product: [Eclipse Project] Platform Reporter: Ralph <rodkeyrr>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: billy.biggs, cocoakevin, ericwill
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Ralph CLA 2005-07-06 14:03:17 EDT
ScrollBar.setEnabled(false) prevents the user from dragging the bars, but the
ScrollBar still responds to mouse wheel scrolls.
Comment 1 Billy Biggs CLA 2005-07-07 18:01:33 EDT
Nifty!
Comment 2 Eric Williams CLA 2016-08-05 10:45:57 EDT
This is still reproducible for me.

This bodes for a discussion: the API states that a disabled control should be drawn with an inactive or grayed look, which in this case it is. It also states that the disabled control isn't selectable from the UI, which in this case it isn't.

However it doesn't say anything about the control being totally disabled, because we can still scroll using the mouse wheel. Technically no API is being violated, but then it seems a bit misleading to have scroll bars be scrollable if they are "disabled". Moving to the SWT inbox.
Comment 3 Eric Williams CLA 2018-11-30 17:05:07 EST
I don't think there is a way to implement this in Scrollbar, so from my POV the API is doing it's job. Presumably if someone wanted to disable scrolling entirely they would specify it at an individual widget level.