@aparte/core 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/custom-elements.json +12186 -12186
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4684,8 +4684,8 @@ class AparteChatViewport extends HTMLElement {
|
|
|
4684
4684
|
const churn = Math.abs(height - this._lastScrollHeight);
|
|
4685
4685
|
const now = performance.now();
|
|
4686
4686
|
const shrank = height < this._lastScrollHeight - 1;
|
|
4687
|
-
const afterMutation = now - this._lastMutationAt < this._settleShadowMs &&
|
|
4688
|
-
const settlingOurs = now - this._ownScrollAt < this._ownScrollWindowMs && now - this._readerInputAt >= this._ownScrollWindowMs && !this._pointerHeld && (drop <= churn + 2 || afterMutation);
|
|
4687
|
+
const afterMutation = now - this._lastMutationAt < this._settleShadowMs && drop <= this._settleBoundPx;
|
|
4688
|
+
const settlingOurs = now - this._ownScrollAt < this._ownScrollWindowMs && now - this._readerInputAt >= this._ownScrollWindowMs && !this._pointerHeld && (drop <= churn + 2 || shrank || afterMutation);
|
|
4689
4689
|
const readerWentUp = drop > 1 && !settlingOurs;
|
|
4690
4690
|
const readerHandOnIt = drop > 1 && now - this._readerInputAt < this._ownScrollWindowMs;
|
|
4691
4691
|
this._lastScrollTop = top;
|