Changeset 10244 in josm for trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
- Timestamp:
- 2016-05-17T17:58:09+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
r10217 r10244 90 90 91 91 // UP 92 if ((direction & UP_DIRECTION) >0) {92 if ((direction & UP_DIRECTION) != 0) { 93 93 button = new JButton(); 94 94 button.addMouseListener(new ScrollViewPortMouseListener(UP_DIRECTION)); … … 100 100 101 101 // DOWN 102 if ((direction & DOWN_DIRECTION) >0) {102 if ((direction & DOWN_DIRECTION) != 0) { 103 103 button = new JButton(); 104 104 button.addMouseListener(new ScrollViewPortMouseListener(DOWN_DIRECTION)); … … 110 110 111 111 // LEFT 112 if ((direction & LEFT_DIRECTION) >0) {112 if ((direction & LEFT_DIRECTION) != 0) { 113 113 button = new JButton(); 114 114 button.addMouseListener(new ScrollViewPortMouseListener(LEFT_DIRECTION)); … … 120 120 121 121 // RIGHT 122 if ((direction & RIGHT_DIRECTION) >0) {122 if ((direction & RIGHT_DIRECTION) != 0) { 123 123 button = new JButton(); 124 124 button.addMouseListener(new ScrollViewPortMouseListener(RIGHT_DIRECTION));
Note:
See TracChangeset
for help on using the changeset viewer.