Skip to content

Commit afa9f07

Browse files
fix(ui): missing cursor when transforming
1 parent addb5c4 commit afa9f07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasTool/CanvasToolModule.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,16 @@ export class CanvasToolModule extends CanvasModuleBase {
160160
const stage = this.manager.stage;
161161
const tool = this.$tool.get();
162162
const segmentingAdapter = this.manager.stateApi.$segmentingAdapter.get();
163+
const transformingAdapter = this.manager.stateApi.$transformingAdapter.get();
163164

164-
if ((this.manager.stage.getIsDragging() || tool === 'view') && !segmentingAdapter) {
165+
if (this.manager.stage.getIsDragging()) {
166+
this.tools.view.syncCursorStyle();
167+
} else if (tool === 'view') {
165168
this.tools.view.syncCursorStyle();
166169
} else if (segmentingAdapter) {
167170
segmentingAdapter.segmentAnything.syncCursorStyle();
171+
} else if (transformingAdapter) {
172+
// The transformer handles cursor style via events
168173
} else if (this.manager.stateApi.$isFiltering.get()) {
169174
stage.setCursor('not-allowed');
170175
} else if (this.manager.stagingArea.$isStaging.get()) {

0 commit comments

Comments
 (0)