@gez/date-time-kit 2.0.0-alpha.20 → 2.0.0-alpha.21

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.
@@ -206,7 +206,9 @@ export class Ele extends UiBase {
206
206
  if (target === this._currentItemEle) {
207
207
  observer.observe(firstItem);
208
208
  observer.observe(lastItem);
209
- if (intersectionRatio !== 1 || rootBounds && boundingClientRect && rootBounds.top !== boundingClientRect.top) {
209
+ if (intersectionRatio !== 1 || rootBounds && boundingClientRect && Math.abs(
210
+ rootBounds.top - boundingClientRect.top
211
+ ) > 2) {
210
212
  observer.observe(target);
211
213
  } else {
212
214
  this._isScrolling = false;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "unbuild": "3.6.0",
21
21
  "vitest": "3.2.4"
22
22
  },
23
- "version": "2.0.0-alpha.20",
23
+ "version": "2.0.0-alpha.21",
24
24
  "type": "module",
25
25
  "private": false,
26
26
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "template",
40
40
  "public"
41
41
  ],
42
- "gitHead": "6a911eae4985534a9682a943846f75f4d551e76e"
42
+ "gitHead": "3e500ac773a8879132d6d1b7f57e142d7d71bf2a"
43
43
  }
@@ -142,7 +142,9 @@ export class Ele extends UiBase<Attrs, Emits> {
142
142
  intersectionRatio !== 1 ||
143
143
  (rootBounds &&
144
144
  boundingClientRect &&
145
- rootBounds.top !== boundingClientRect.top)
145
+ Math.abs(
146
+ rootBounds.top - boundingClientRect.top
147
+ ) > 2)
146
148
  ) {
147
149
  observer.observe(target);
148
150
  } else {