aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-26 16:16:21 -0400
committerbobzel <zzzman@gmail.com>2022-08-26 16:16:21 -0400
commitb1044d1d79c1e06769f74df514e12557426b67be (patch)
tree13474116c6da78bbe41047fc7ad2dcc920550e67 /src/client/views/collections/CollectionStackingView.tsx
parent7278aaa71a13f57cdc371bd771f5fcc6419707b7 (diff)
trying to clean up transition times for presbox / jumptoDoc, etc.
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 71834607c..7f142727c 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -259,7 +259,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
const top = found.getBoundingClientRect().top;
const localTop = this.props.ScreenToLocalTransform().transformPoint(0, top);
if (Math.floor(localTop[1]) !== 0) {
- smoothScroll((focusSpeed = doc.presTransition || doc.presTransition === 0 ? NumCast(doc.presTransition) : 500), this._mainCont!, localTop[1] + this._mainCont!.scrollTop);
+ smoothScroll((focusSpeed = NumCast(doc.focusSpeed, 500)), this._mainCont!, localTop[1] + this._mainCont!.scrollTop);
}
}
const endFocus = async (moved: boolean) => options?.afterFocus?.(moved) ?? ViewAdjustment.doNothing;
@@ -494,8 +494,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
super.onExternalDrop(e, {}, (docs: Doc[]) => {
if (targInd === -1) {
this.addDocument(docs);
- }
- else {
+ } else {
const childDocs = this.childDocList;
if (childDocs) {
childDocs.splice(targInd, 0, ...docs);