You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search/Usages result preview window has an extreme mouse wheel property (>=4 movements total?) #9145
Search or Usages results preview windows has its own hardcoded value for mouse wheel up and down movement and is extreme, One mouse wheel movement and it jumps to a relative position (about total lines/ 4) and it is not predictable. This should not happen, it should at least inherit the main editor behavior.
Language / Project Type / NetBeans Component
No response
How to reproduce
Just do a Find/Search or Find Usages and select a result, then in preview window, use mouse wheel up/down
can you try to make the window larger until it covers most of the screen in height?
Maximizing the preview window (search + usages) does not change anything (extreme movement remains the same), I have also noticed that the preview window in "usages" does include the line numbering and code folding graphics elements plus the local search (ctrl+F) works in preview, but in "search" it does not, it looks more minimal.
Activity
mbien commentedon Jan 21, 2026
can reproduce on linux too. The refactoring preview (diff) does work fine but the non-diff preview jumps a bit much on scroll.
the view is used by bookmarks/search/find usages windows.
neilcsmith-net commentedon Jan 21, 2026
Curious, I can't. Works fine for me. I wonder what the relevant difference is here.
mbien commentedon Jan 21, 2026
@neilcsmith-net can you try to make the window larger until it covers most of the screen in height?
the scroll amount seems to be related to the viewport size in my case.
hypothesis: the split view scrolls instead of the editor?
neilcsmith-net commentedon Jan 21, 2026
OK @mbien can replicate that - scroll amount is window height related - standard size is fine, maximised is not.
@istinnstudio is that the same behaviour you see though?
istinnstudio commentedon Jan 21, 2026
Maximizing the preview window (search + usages) does not change anything (extreme movement remains the same), I have also noticed that the preview window in "usages" does include the line numbering and code folding graphics elements plus the local search (ctrl+F) works in preview, but in "search" it does not, it looks more minimal.
mbien commentedon Feb 6, 2026
the main editor component is based on
QuietEditorPane, while the previews areJEditorPanes:netbeans/ide/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/PreviewManager.java
Lines 134 to 136 in a1c5fec
NBEditorUIcalls:netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorUI.java
Lines 474 to 477 in a1c5fec
which is has a custom impl for the
QuietEditorPane:netbeans/platform/openide.text/src/org/openide/text/QuietEditorPane.java
Lines 147 to 156 in a1c5fec
but would simply return height/10 for the
JEditorPane