Integrated: 6911375: mouseWheel has no effect without vertical scrollbar
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Mar 3 09:57:10 UTC 2022
On Wed, 23 Feb 2022 04:24:41 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> It is observed that mouseWheel doesn't scroll through a list if there is no scrollbar even though pressing PageUp/Down using keyboard moves up/down the list.
> Issue stems from the fact that BasicScrollPaneUI.Handler.mouseWheelMoved() skips the mouse wheel events when the scrollbar is not visible.
> Fixed to handle mouseWheelEvent even though scrollbar is not visible with the assumption that if both vertical and horizontal scrollbar is not visible, then assume default orientation to be vertical.
>
> Existing jtreg, jck tests are ok. All L&F works well with the fix and testcase works in all platforms except on mac which will be handled separately.
This pull request has now been integrated.
Changeset: 832729b4
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/832729b41e690d6f05da71997bbe2a74b2d6dada
Stats: 138 lines in 2 files changed: 135 ins; 1 del; 2 mod
6911375: mouseWheel has no effect without vertical scrollbar
Reviewed-by: aivanov
-------------
PR: https://git.openjdk.java.net/jdk/pull/7585
More information about the client-libs-dev
mailing list