File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
invokeai/frontend/web/src/features/controlLayers/konva/CanvasTool Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 ( ) ) {
You can’t perform that action at this time.
0 commit comments