Revision 45610 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/tools/Behavior/MoveBehavior.java
MoveBehavior.java | ||
---|---|---|
123 | 123 |
} |
124 | 124 |
|
125 | 125 |
protected void doMouseReleased(MouseEvent e) throws BehaviorException { |
126 |
MoveEvent event = new MoveEvent(m_FirstPoint, e.getPoint(), e); |
|
126 |
Point2D adjustedPoint = getMapControl().convertToMapPoint(e.getPoint(), this.getUseSnapping()); |
|
127 |
MoveEvent event = new MoveEvent(m_FirstPoint, adjustedPoint, e); |
|
127 | 128 |
listener.move(event); |
128 | 129 |
|
129 | 130 |
getMapControl().drawMap(false); |
... | ... | |
136 | 137 |
@Override |
137 | 138 |
public void mouseDragged(MouseEvent e) { |
138 | 139 |
if (this.isMyButton(e)) { |
140 |
Point2D adjustedPoint = getMapControl().convertToMapPoint(e.getPoint(), this.getUseSnapping()); |
|
139 | 141 |
m_LastPoint = e.getPoint(); |
140 | 142 |
getMapControl().repaint(); |
141 | 143 |
} |
Also available in: Unified diff