mbien commented on issue #6995:
URL: https://github.com/apache/netbeans/issues/6995#issuecomment-1913329359

   so, this might be a jdk bug.
   ```diff
   diff --git 
a/ide/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffContentPanel.java
 
b/ide/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffContentPanel.java
   index d693f77..4b78741 100644
   --- 
a/ide/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffContentPanel.java
   +++ 
b/ide/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffContentPanel.java
   @@ -67,7 +67,7 @@
            add(scrollPane);
            
            linesActions = new LineNumbersActionsBar(this, 
master.isActionsEnabled());
   +        linesActions.addMouseWheelListener(e -> {});
    
            actionsScrollPane = new JScrollPane(linesActions);
            
actionsScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
   ```
   
   
   this did already stop the line numbers component from scrolling - which is 
unusual. I originally planned on adding `e.consume()` as quick fix, but the 
empty listener was enough.
   
   please take a look at the dev build of 
https://github.com/apache/netbeans/pull/7009, it delegates the mouse events to 
the editor.


-- 
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.

To unsubscribe, e-mail: [email protected]

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