You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ne...@apache.org on 2021/01/23 16:42:54 UTC

[netbeans] branch master updated: [NETBEANS-5026] Fix wheel/trackpad scrolling in notifications window

This is an automated email from the ASF dual-hosted git repository.

neilcsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 7be1ef2  [NETBEANS-5026] Fix wheel/trackpad scrolling in notifications window
     new 9b5068b  Merge pull request #2703 from DevCharly/NETBEANS-5026
7be1ef2 is described below

commit 7be1ef295cd8f8e51930adf2e4f2dfa324f77b07
Author: Karl Tauber <ka...@jformdesigner.com>
AuthorDate: Fri Jan 22 00:26:49 2021 +0100

    [NETBEANS-5026] Fix wheel/trackpad scrolling in notifications window
---
 .../modules/notifications/center/NotificationCenterTopComponent.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ide/notifications/src/org/netbeans/modules/notifications/center/NotificationCenterTopComponent.java b/ide/notifications/src/org/netbeans/modules/notifications/center/NotificationCenterTopComponent.java
index 37054cd..c1c0238 100644
--- a/ide/notifications/src/org/netbeans/modules/notifications/center/NotificationCenterTopComponent.java
+++ b/ide/notifications/src/org/netbeans/modules/notifications/center/NotificationCenterTopComponent.java
@@ -109,6 +109,8 @@ public final class NotificationCenterTopComponent extends TopComponent {
         lblEmptyDetails.setEnabled(false);
 
         JScrollPane scrollPane = new JScrollPane(detailsPanel);
+        scrollPane.getVerticalScrollBar().setUnitIncrement(10);
+        scrollPane.getHorizontalScrollBar().setUnitIncrement(10);
         splitPane.setRightComponent(scrollPane);
 
         toolBar.setFocusable(false);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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