diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-03 00:18:36 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-03 00:18:36 -0500 |
| commit | dbdf81e191107240a62086ebe65d1dc5e3b503c6 (patch) | |
| tree | 5657446f87cd89bc6ba2ab26006939c41682b225 /src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx | |
| parent | 2556a754404cc622629ca12bddcd163f53b69060 (diff) | |
several fixes to templates (simplified expanding, notes use 'text' field now, collections show documents when their data field is not a list). multicol/row resizers select their doc.
Diffstat (limited to 'src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx')
| -rw-r--r-- | src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx b/src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx index 2cbeb3526..e1e604686 100644 --- a/src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx +++ b/src/client/views/collections/collectionMulticolumn/MulticolumnResizer.tsx @@ -11,6 +11,7 @@ interface ResizerProps { columnUnitLength(): number | undefined; toLeft?: Doc; toRight?: Doc; + select: (isCtrlPressed: boolean) => void; } const resizerOpacity = 1; @@ -23,6 +24,7 @@ export default class ResizeBar extends React.Component<ResizerProps> { @action private registerResizing = (e: React.PointerEvent<HTMLDivElement>) => { + this.props.select(false); e.stopPropagation(); e.preventDefault(); window.removeEventListener("pointermove", this.onPointerMove); |
