diff options
| author | bobzel <zzzman@gmail.com> | 2023-06-14 11:03:57 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-06-14 11:03:57 -0400 |
| commit | d7e2cf07bbfd7f9ed35c42068326d4ea988306bc (patch) | |
| tree | 83e3eaf041ab773373b923b7cd5a033d1295df9e /src/client/views/collections/collectionFreeForm | |
| parent | ee88a9edb0c68cf99d8aee3ca8a001e5e53a30c2 (diff) | |
fixed double clicking to not trigger on a document if it is active (previoulsy was if selected)
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 534275610..77cb7f88c 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -337,7 +337,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque @action onClick = (e: React.MouseEvent): void => { if (this.props.pointerEvents?.() === 'none') return; - if (Math.abs(e.clientX - this._downX) < Utils.DRAG_THRESHOLD && Math.abs(e.clientY - this._downY) < Utils.DRAG_THRESHOLD) { + if (Utils.isClick(e.clientX, e.clientY, this._downX, this._downY, Date.now())) { if (Doc.ActiveTool === InkTool.None) { if (!(e.nativeEvent as any).marqueeHit) { (e.nativeEvent as any).marqueeHit = true; |
