mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): various things listening when they need not listen
This commit is contained in:
parent
0839eac0f7
commit
4b609251e1
@ -235,6 +235,7 @@ export class CanvasBbox {
|
||||
const toolState = this.manager.stateApi.getToolState();
|
||||
|
||||
this.konva.group.visible(true);
|
||||
this.parent.getLayer().listening(toolState.selected === 'bbox');
|
||||
this.konva.group.listening(toolState.selected === 'bbox');
|
||||
this.konva.rect.setAttrs({
|
||||
x: bbox.rect.x,
|
||||
|
@ -21,7 +21,7 @@ export class CanvasPreview {
|
||||
constructor(manager: CanvasManager) {
|
||||
this.manager = manager;
|
||||
this.konva = {
|
||||
layer: new Konva.Layer({ listening: true, imageSmoothingEnabled: false }),
|
||||
layer: new Konva.Layer({ listening: false, imageSmoothingEnabled: false }),
|
||||
};
|
||||
|
||||
this.stagingArea = new CanvasStagingArea(this);
|
||||
|
@ -55,9 +55,9 @@ export class CanvasTool {
|
||||
this.path = this.manager.path.concat(this.id);
|
||||
this.log = this.manager.buildLogger(this.getLoggingContext);
|
||||
this.konva = {
|
||||
group: new Konva.Group({ name: `${this.type}:group` }),
|
||||
group: new Konva.Group({ name: `${this.type}:group`, listening: false }),
|
||||
brush: {
|
||||
group: new Konva.Group({ name: `${this.type}:brush_group` }),
|
||||
group: new Konva.Group({ name: `${this.type}:brush_group`, listening: false }),
|
||||
fillCircle: new Konva.Circle({
|
||||
name: `${this.type}:brush_fill_circle`,
|
||||
listening: false,
|
||||
@ -79,7 +79,7 @@ export class CanvasTool {
|
||||
}),
|
||||
},
|
||||
eraser: {
|
||||
group: new Konva.Group({ name: `${this.type}:eraser_group` }),
|
||||
group: new Konva.Group({ name: `${this.type}:eraser_group`, listening: false }),
|
||||
fillCircle: new Konva.Circle({
|
||||
name: `${this.type}:eraser_fill_circle`,
|
||||
listening: false,
|
||||
@ -103,7 +103,7 @@ export class CanvasTool {
|
||||
}),
|
||||
},
|
||||
eyeDropper: {
|
||||
group: new Konva.Group({ name: `${this.type}:eyeDropper_group` }),
|
||||
group: new Konva.Group({ name: `${this.type}:eyeDropper_group`, listening: false }),
|
||||
fillCircle: new Konva.Circle({
|
||||
name: `${this.type}:eyeDropper_fill_circle`,
|
||||
listening: false,
|
||||
|
Loading…
Reference in New Issue
Block a user