From 3249a76b9fc1984b013ab4cf267602e1cfd4b5ae Mon Sep 17 00:00:00 2001 From: bob Date: Fri, 12 Apr 2019 11:25:02 -0400 Subject: added title bar dragging for decorations. --- src/client/views/DocumentDecorations.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 03b16fb0b..15ac0a8fc 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -108,7 +108,9 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> document.addEventListener("pointerup", this.onBackgroundUp); this._lastDrag = [e.clientX, e.clientY]; e.stopPropagation(); - e.preventDefault(); + if (e.currentTarget.localName !== "input") { + e.preventDefault(); + } } @action @@ -404,7 +406,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> opacity: this._opacity }}>
...
- +
X
e.preventDefault()}>
e.preventDefault()}>
-- cgit v1.2.3-70-g09d2