This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Scroll mouse in the editor,It sroll 3 times fast as the system default setting. e.g:If the OS setting is scroll 2 lines every time, the editor will scroll 6 lines every time, there should be a configuration for this, or to set as the system setting.
We should be able to resolve this into 3.6. Assigning to Dusan for evaluation.
The scrolling is dependant on viewport height. If you enlarge editor window to different heights, you get different scrolling steps after mouse wheel scroll events or after clicking on the arrow of vertical scroll bar
Scroll increments are determined by the Scollable.getScrollableUnitIncrement(...) method. The default implementation of this method (implemented in JTextComponent) is to simply return 10% of the visible area. However, subclasses can provide much more reasonable values. It is probably question to UI whether our QuietEditorPane should override this method to return something else (e.g. a row height similarly to JTextArea, etc.)
Reassigning to openide/editor maintaining QuietEditorPane.
Not that important for 3.6. Sorry.
The solution is known and quite simple. Let's fix this for 5.0
Created attachment 25140 [details] patch for mouse wheel scroll in the editor
there is patch attched which fixes this issue. it overrides getScrollableUnitIncrement(...) method and returns row height for horizontal, and char width for verical scrolls (like it is implemented in JTextArea) it also caches scroll values thus avoids calculating scroll units each time mouse wheel is moved. construcor adds listener which reacts to font changes and adjust scroll untis.
Implemented (slightly different patch): openide/text/src/org/openide/text/QuietEditorPane.java,v1.4