Commit a9b48315 by Christian Winter

bugfix. shift+scroll now changing selection radius again

parent 653d8625
Pipeline #6291846 failed with stage
in 2 minutes 36 seconds
......@@ -23,7 +23,7 @@
this.context = this.canvas.getContext('2d');
this.camera = new Camera(this);
// mouse
// mouse
this.oldPos = new Vector2(-1, -1);
this.oldPosScreenSpace = Vector2.zero;
this.processingWaitingState = false;
......@@ -34,7 +34,7 @@
// file and data stuff
this.logic = new Logic();
this.data = []; // currentlayer.data for sceneView. prefab for editView
this.data = []; // currentlayer.data for sceneView. prefab for editView
this.selection = new Selection(this);
}
......@@ -184,7 +184,7 @@
{
if (this.logic.currentState.initializedWithRMBDown) {
this.logic.currentState.execute();
this.logic.setState(new IdleState());
this.logic.setState(new IdleState());
}
} else if (this.logic.currentState instanceof BrushSelectionState) // end brush selection initialized with RMB
{
......@@ -314,7 +314,7 @@
}
}
else if (e.detail == 2) {
if (e.button == 0) { // LMB
if (e.button == 0) { // LMB
}
else if (e.button == 1) {// MMB
......@@ -355,9 +355,9 @@
if (e.shiftKey) {
let step = 1;
if (e.deltaX < 0)
if (e.deltaY < 0)
Application.cursor.range += step;
else if (e.deltaX > 0)
else if (e.deltaY > 0)
Application.cursor.range = Math.max(Application.cursor.range - step, 1);
}
if (this.logic.currentState instanceof BrushSelectionState) {
......@@ -414,7 +414,7 @@
this.logic.currentState.exit()
}
}
_adjustMouseDownButtonBools(e, state) {
if (e.button == 0)
this.LMBDown = state;
......@@ -731,4 +731,4 @@
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment