I also agree with Greg, in Linux (Gnome) and Mac OS X "scroll pane" respond mouse wheel event when mouse is over it (has or not the focus) and I think is better than Windows.
Also I think most user don't know that behavior, they will try first make the component focused and then move the wheel. On mar, 2011-07-26 at 22:39 +0000, Sandro Martini (JIRA) wrote: > [ > https://issues.apache.org/jira/browse/PIVOT-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071400#comment-13071400 > ] > > Sandro Martini commented on PIVOT-776: > -------------------------------------- > > Hi all, > > >It does make sense that certain controls should only respond to mouse wheel > >events when focused. > I agree with Greg, otherwise could be confusing for users. > >What I find annoying is that scroll pane doesn't respond unless its content > >is focused. > On this I don't know what behavior is more useful to users ... > >So I'd suggest checking for isFocused() in each of the components you > >mentioned, but leaving the existing ScrollPane behavior as-is. > Could be the first version, and maybe see what to do even on ScrollBars ... > > Bye > > > > Additional support for mouse wheel adjustments of Component values > > ------------------------------------------------------------------ > > > > Key: PIVOT-776 > > URL: https://issues.apache.org/jira/browse/PIVOT-776 > > Project: Pivot > > Issue Type: Improvement > > Components: wtk, wtk-terra > > Environment: n/a > > Reporter: Chris Bartlett > > Assignee: Chris Bartlett > > Priority: Minor > > Fix For: 2.1 > > > > > > I imagine that mouse wheel events would be ignored unless the Component was > > focused *and* the mouse was over the Component. > > Spinner - Equivalent to an UP/DOWN arrow key press when 'circular' property > > is true > > Slider - Equivalent to an UP/DOWN/LEFT/RIGHT arrow key press > > ListButton - Equivalent to an UP/DOWN arrow key press > > CalendarButton - No current UP/DOWN/LEFT/RIGHT arrow key press > > functionality to change date by a single day, but would be equivalent to > > this. Support for these key presses could be added at the same time. > > -- > This message is automatically generated by JIRA. > For more information on JIRA, see: http://www.atlassian.com/software/jira > > >