mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-26 16:57:43 +02:00
Use crosshair icon while drawing selection
This commit is contained in:
@@ -396,6 +396,10 @@ export default {
|
||||
case ToolTypes.DRAG:
|
||||
canvasClasses.add( "cursor-drag" );
|
||||
break;
|
||||
case ToolTypes.SELECTION:
|
||||
case ToolTypes.LASSO:
|
||||
canvasClasses.add( "cursor-crosshair" );
|
||||
break;
|
||||
case ToolTypes.BRUSH:
|
||||
case ToolTypes.CLONE:
|
||||
case ToolTypes.ERASER:
|
||||
@@ -429,7 +433,7 @@ export default {
|
||||
} else if ( this.layerSelectMode ) {
|
||||
mode = InteractionModes.MODE_LAYER_SELECT;
|
||||
} else if ( this.selectMode ) {
|
||||
mode =InteractionModes.MODE_SELECTION;
|
||||
mode = InteractionModes.MODE_SELECTION;
|
||||
}
|
||||
zCanvas.interactionPane.setState( enabled, mode, this.activeTool, this.activeToolOptions );
|
||||
if ( enabled ) {
|
||||
|
||||
@@ -383,8 +383,8 @@ class InteractionPane extends sprite {
|
||||
}
|
||||
|
||||
update( _now: DOMHighResTimeStamp, framesSinceLastUpdate: number ): void {
|
||||
if ( this.getActiveDocument().activeSelection?.length > 0 ) {
|
||||
this._dashOffset -= ( DASH_SPEED * framesSinceLastUpdate ); // advance the outline animation
|
||||
if ( this._selectionClosed && this.getActiveDocument().activeSelection?.length ) {
|
||||
this._dashOffset -= ( DASH_SPEED * framesSinceLastUpdate ); // advance the selection outline animation
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user