Changeset 7011 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-04-27T13:58:10+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NotificationManager.java
r7005 r7011 47 47 * 48 48 * If multiple messages are sent in a short period of time, they are put in 49 * a queue and displayed on after the other.49 * a queue and displayed one after the other. 50 50 * 51 51 * The user can stop the timer (freeze the message) by moving the mouse cursor … … 56 56 57 57 private Timer hideTimer; // started when message is shown, responsible for hiding the message 58 private Timer pauseTimer; // makes sure the is a small pause between to consecutive messages58 private Timer pauseTimer; // makes sure, there is a small pause between two consecutive messages 59 59 private Timer unfreezeDelayTimer; // tiny delay before resuming the timer when mouse cursor 60 60 // is moved off the panel -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapControler.java
r6710 r7011 19 19 import javax.swing.JPanel; 20 20 import javax.swing.KeyStroke; 21 import org.openstreetmap.josm.Main; 21 22 22 23 /** … … 44 45 /** The speed increase per timer interval when a cursor button is clicked */ 45 46 private static final double ACCELERATION = 0.10; 47 48 private static final int MAC_MOUSE_BUTTON3_MASK = MouseEvent.CTRL_DOWN_MASK | MouseEvent.BUTTON1_DOWN_MASK; 46 49 47 50 // start and end point of selection rectangle … … 118 121 @Override 119 122 public void mousePressed(MouseEvent e) { 120 if (e.getButton() == MouseEvent.BUTTON1 ) {123 if (e.getButton() == MouseEvent.BUTTON1 && !(Main.isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK)) { 121 124 iStartSelectionPoint = e.getPoint(); 122 125 iEndSelectionPoint = e.getPoint(); … … 126 129 @Override 127 130 public void mouseDragged(MouseEvent e) { 128 if ((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) == MouseEvent.BUTTON1_DOWN_MASK) { 131 if ((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) == MouseEvent.BUTTON1_DOWN_MASK && 132 !(Main.isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK)) { 129 133 if (iStartSelectionPoint != null) { 130 134 iEndSelectionPoint = e.getPoint();
Note:
See TracChangeset
for help on using the changeset viewer.