Changeset 7009 in josm for trunk/src/org
- Timestamp:
- 2014-04-27T12:43:55+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r7005 r7009 112 112 private int initialMoveDelay = 200; 113 113 /** 114 * The minimal shift of mouse (in pixels) befire something counts as move 115 */ 116 private int initialMoveThreshold = 10; 117 118 /** 114 119 * The initial EastNorths of node1 and node2 115 120 */ … … 209 214 } 210 215 initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay",200); 216 initialMoveThreshold = Main.pref.getInteger("extrude.initial-move-threshold", 10); 211 217 mainColor = Main.pref.getColor(marktr("Extrude: main line"), null); 212 218 if (mainColor == null) mainColor = PaintColors.SELECTED.get(); … … 362 368 } else { 363 369 if (mode == Mode.create_new) { 364 if (e.getPoint().distance(initialMousePos) > 10&& newN1en != null) {370 if (e.getPoint().distance(initialMousePos) > initialMoveThreshold && newN1en != null) { 365 371 createNewRectangle(); 366 372 } … … 370 376 addNewNode(e); 371 377 } 372 else if (e.getPoint().distance(initialMousePos) > 10&& newN1en != null && selectedSegment != null) {378 else if (e.getPoint().distance(initialMousePos) > initialMoveThreshold && newN1en != null && selectedSegment != null) { 373 379 // main extrusion commands 374 380 performExtrusion(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r7005 r7009 174 174 putValue("help", ht("/Action/Select")); 175 175 selectionManager = new SelectionManager(this, false, mv); 176 initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay", 200);177 initialMoveThreshold = Main.pref.getInteger("edit.initial-move-threshold", 5);178 176 } 179 177 … … 185 183 mv.setVirtualNodesEnabled(Main.pref.getInteger("mappaint.node.virtual-size", 8) != 0); 186 184 drawTargetHighlight = Main.pref.getBoolean("draw.target-highlight", true); 185 initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay", 200); 186 initialMoveThreshold = Main.pref.getInteger("edit.initial-move-threshold", 5); 187 187 cycleManager.init(); 188 188 virtualManager.init(); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r7005 r7009 75 75 private static final int MILLIS_OF_DAY = 86400000; 76 76 77 // Should us keep "%" character when fixing URL or encode it? Let us keep them for now, see #993778 77 public static final String URL_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=%"; 79 78
Note:
See TracChangeset
for help on using the changeset viewer.