tamagui 1.130.4 → 1.130.5

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.
@@ -18464,29 +18464,34 @@ var require_SheetScrollView_native = __commonJS({
18464
18464
  }
18465
18465
  }, scrollable = scrollEnabled;
18466
18466
  (0, import_react3.useEffect)(function() {
18467
+ var _scrollRef_current;
18467
18468
  if (import_core12.isClient && scrollRef.current) {
18468
- var controller = new AbortController(), node = scrollRef.current.getScrollableNode();
18469
- node.addEventListener(
18470
- "touchmove",
18471
- function(e) {
18472
- scrollBridge.isParentDragging && node.scrollTo({
18473
- top: scrollBridge.y,
18474
- behavior: "instant"
18475
- });
18476
- },
18477
- // can't preventdefault its not cancellable
18478
- {
18479
- signal: controller.signal,
18480
- passive: !1
18481
- }
18482
- );
18483
- var disposeBridgeListen = scrollBridge.onParentDragging(function(val) {
18484
- });
18485
- return function() {
18486
- disposeBridgeListen(), controller.abort();
18487
- };
18469
+ var controller = new AbortController(), node = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.getScrollableNode();
18470
+ if (node) {
18471
+ node.addEventListener(
18472
+ "touchmove",
18473
+ function(e) {
18474
+ scrollBridge.isParentDragging && node.scrollTo({
18475
+ top: scrollBridge.y,
18476
+ behavior: "instant"
18477
+ });
18478
+ },
18479
+ // can't preventdefault its not cancellable
18480
+ {
18481
+ signal: controller.signal,
18482
+ passive: !1
18483
+ }
18484
+ );
18485
+ var disposeBridgeListen = scrollBridge.onParentDragging(function(val) {
18486
+ });
18487
+ return function() {
18488
+ disposeBridgeListen(), controller.abort();
18489
+ };
18490
+ }
18488
18491
  }
18489
- }, []);
18492
+ }, [
18493
+ scrollRef
18494
+ ]);
18490
18495
  var [hasScrollableContent, setHasScrollableContent] = (0, import_react3.useState)(!0), parentHeight = (0, import_react3.useRef)(0), contentHeight = (0, import_react3.useRef)(0), setIsScrollable = function() {
18491
18496
  parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
18492
18497
  };