Changeset 13143 in josm for trunk/src/org
- Timestamp:
- 2017-11-22T02:27:11+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r13126 r13143 910 910 } 911 911 912 @Override 913 protected void refreshMouse() { 914 if (lastMEvent.getWhen() > 0) { 915 // This fake movement allows to keep consistent state between mouse position and hilighted primitives, status bar, etc. 916 // When the map is not moved by mouse (for example with keyboard shortcuts) 917 dispatchEvent(new MouseEvent(this, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 918 lastMEvent.getX(), lastMEvent.getY(), 0, false)); 919 } 920 } 921 912 922 /** 913 923 * Returns the layer manager. -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r12846 r13143 697 697 if (!initial) { 698 698 repaint(); 699 refreshMouse(); 699 700 fireZoomChanged(); 700 701 } 702 } 703 704 protected void refreshMouse() { 705 // To be overriden by subclasses handling mouse events 701 706 } 702 707
Note:
See TracChangeset
for help on using the changeset viewer.