DevCharly opened a new pull request #2642:
URL: https://github.com/apache/netbeans/pull/2642


   Scrolling using mouse wheel (or scroll arrow buttons) in "Options > Fonts & 
Colors > Syntax > Preview area" (select language "Yaml") is very slow (1-3 
pixel) because a `JPanel` is used as view in a `JScrollPane`. Since `JPanel` 
does not implement the `javax.swing.Scrollable` interface, the scrollpane uses 
a unit increment of 1. So clicking scroll arrow arrows (or rotating mouse wheel 
one tick) scrolls only 1-3 pixel (depending on OS and scroll amount specified 
in OS settings).
   
   This fix simply sets unit increment to 10.
   
   This is similar to other code in NB:
   https://github.com/apache/netbeans/search?q=setUnitIncrement
   
   This affects all Lafs.
   
   For FlatLaf, this also improves smooth scrolling (using trackpad) reported 
here:
   https://issues.apache.org/jira/browse/NETBEANS-5025


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to