Review request for 7141296: [macosx] Mouse Wheel Turn closes combobox popup

Sergey Bylokhov sergey.bylokhov at oracle.com
Mon Feb 13 04:38:00 PST 2012


10.02.2012 23:37, Alexander Potochkin wrote:
> Hello
>
> Please review the following fix:
> http://cr.openjdk.java.net/~alexp/7141296/webrev.00/
>
> the bug's description is here:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7141296
>
> When JScrollPane can't scroll it doesn't consume the mouseWheel event
> and the Swing popup gets closed,  to please AquaLaF I consume the 
> event even when the scrollBar is invisible.
>
> Another serious problem is fixed -
> when the scrollBar is visible it was impossible to scroll it with the 
> mouseWheel with the single turn of the wheel.
> It got scrolled only if you rotated the wheel fast enough.
>
> With this fix I set thewheelRotation property
>
> to 1 if 0 < preciseWheelRotation < 1
> and to -1 if -1 < preciseWheelRotation < 0
>
> as expected by the Swing components
It would be better to move this code to 
CPlatformresponder.dispatchScrollEvent() in which we lost precision
Line 113: scrollAmount, *(int) *-delta*,* -delta, null);
>
> Thanks
> alexp
>


-- 
Best regards, Sergey.



More information about the macosx-port-dev mailing list