mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Snap to grid after releasing Ctrl button and creating a new component
This commit is contained in:
+7
@@ -706,6 +706,13 @@ public class Presenter implements IPlugInPort {
|
||||
@Override
|
||||
public void mouseMoved(Point point, boolean ctrlDown, boolean shiftDown,
|
||||
boolean altDown) {
|
||||
|
||||
if (shiftDown) {
|
||||
dragAction = IPlugInPort.DND_TOGGLE_SNAP;
|
||||
} else {
|
||||
dragAction = 0;
|
||||
}
|
||||
|
||||
Map<IDIYComponent<?>, Set<Integer>> components = new HashMap<IDIYComponent<?>, Set<Integer>>();
|
||||
this.previousScaledPoint = scalePoint(point);
|
||||
if (instantiationManager.getComponentTypeSlot() != null) {
|
||||
|
||||
Reference in New Issue
Block a user