Skip to content

Commit

Permalink
Don't show transformation handles if readOnly or glyph locked
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Oct 9, 2024
1 parent 2eddbeb commit c0ec5c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fontra/views/editor/edit-tools-pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,14 @@ registerVisualizationLayerDefinition({
if (!model.showTransformSelection) {
return;
}

if (
!!positionedGlyph.varGlyph?.glyph.customData["fontra.glyph.locked"] ||
model.fontController.readOnly
) {
return;
}

const transformBounds = getTransformSelectionBounds(
positionedGlyph.glyph,
model.selection
Expand Down

0 comments on commit c0ec5c6

Please sign in to comment.