Skip to content

Commit

Permalink
fix: double click
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and logseq-cldwalker committed Mar 27, 2023
1 parent d00ec0a commit 8a92caa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -69,12 +69,12 @@ export class HoveringSelectionHandleState<
}

onDoubleClick: TLEvents<S>['pointer'] = info => {
if (info.order || this.app.readOnly) return
if (info.order) return
const isSingle = this.app.selectedShapes.size === 1
if (!isSingle) return
const selectedShape = getFirstFromSet(this.app.selectedShapes)

if (selectedShape.canEdit) {
if (selectedShape.canEdit && !this.app.readOnly) {
switch (info.type) {
case TLTargetType.Shape: {
this.tool.transition('editingShape', info)
Expand Down

0 comments on commit 8a92caa

Please sign in to comment.