mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 21:24:21 +00:00
fix: an experiment on portal editing
This commit is contained in:
@@ -721,7 +721,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
pointerEvents: isEditing ? 'all' : 'none',
|
||||
pointerEvents: !isMoving && (isEditing || isSelected) ? 'all' : 'none',
|
||||
}}
|
||||
>
|
||||
{isCreating ? (
|
||||
|
||||
@@ -104,6 +104,9 @@ export class TranslatingState<
|
||||
)
|
||||
this.initialPoints = this.initialShapePoints
|
||||
|
||||
// Blur all inputs when moving shapes
|
||||
document.querySelectorAll<HTMLElement>('input,textarea').forEach(el => el.blur())
|
||||
|
||||
if (inputs.altKey) {
|
||||
this.startCloning()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user