@lynx-js/lynx-ui-scroll-view 3.133.0 → 3.133.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lynx-js/lynx-ui-scroll-view
2
2
 
3
+ ## 3.133.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Improve Web and desktop touch compatibility by routing `onTouchStart`, ([#200](https://github.com/lynx-family/lynx-ui/pull/200))
8
+ `onTouchMove`, `onTouchEnd`, and `onTouchCancel` through shared touch
9
+ emulation.
10
+ - Updated dependencies [[`3932070`](https://github.com/lynx-family/lynx-ui/commit/393207073522e221a79e65c643df2afb329ec931)]:
11
+ - @lynx-js/lynx-ui-common@3.133.1
12
+ - @lynx-js/lynx-ui-lazy-component@3.133.1
13
+
3
14
  ## 3.133.0
4
15
 
5
16
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.jsx","sources":["webpack://@lynx-js/lynx-ui-scroll-view/./src/index.tsx"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport { forwardRef, memo, useRef } from '@lynx-js/react'\nimport type { ForwardedRef, ReactNode } from '@lynx-js/react'\n\nimport '@lynx-js/gesture-runtime'\nimport type { GestureKind } from '@lynx-js/gesture-runtime'\nimport type { LazyOptions } from '@lynx-js/lynx-ui-common'\nimport {\n ExposureEventsMapping,\n LayoutEventsMapping,\n ScrollEventsMapping,\n TouchEventsMapping,\n useRegisteredEvents,\n} from '@lynx-js/lynx-ui-common'\nimport { LazyComponent } from '@lynx-js/lynx-ui-lazy-component'\nimport type {\n CSSProperties,\n ScrollViewProps as ScrollViewElementProps,\n} from '@lynx-js/types'\n\nimport ScrollViewBasic from './ScrollViewBasic'\nimport ScrollViewWithBouncesHook from './ScrollViewWithBouncesHook'\nimport type {\n BounceableBasicProps,\n ScrollViewProps,\n ScrollViewRef,\n ScrollView as ScrollViewType,\n} from './types'\n\nexport type { ScrollViewProps, ScrollViewRef }\nexport { useBounce } from './hooks/useBounce'\nexport type { bounceHandlers } from './hooks/useBounce'\nexport type { BounceableBasicProps } from './types'\n\nexport const ScrollView = memo(forwardRef(ScrollViewImpl)) as ScrollViewType\n\nconst ScrollViewEventMapping: Record<string, string> = {\n onContentSizeChange: 'bindcontentsizechanged',\n onWheel: 'bindwheel',\n}\n\n/**\n * @example\n * ```javascript\n * <ScrollView\n scene={`viewpager_${index1}`}\n style={{ width: '100%', height: '100%' }}\n estimatedItemStyle={{ width: '100%', height: '800px' }}\n scrollOrientation='vertical'\n exposureRight=\"50px\"\n exposureBottom=\"220px\"\n >\n {scrollview.map((item, index) => (\n <view\n style={`width:100%;height:580rpx;`}\n >\n <text>{`slot-${index}`}</text>\n </view>\n ))}\n </ScrollView>\n * ```\n */\nfunction ScrollViewImpl(\n props: ScrollViewProps,\n _ref: ForwardedRef<ScrollViewRef>,\n) {\n const {\n scrollviewId = 'scrollview',\n horizontal = false,\n style,\n children,\n scrollOrientation,\n lazyOptions,\n className = '',\n debugLog = false,\n enableRTL = false,\n bounceableOptions = {\n enableBounces: true,\n singleSidedBounce: 'iOSBounces',\n },\n enableScroll = true,\n enableScrollMonitor = false,\n scrollMonitorTag,\n sticky,\n scrollPropagationBehavior = 'native',\n temporaryBlockScrollClass = 'BDXLynxViewPager',\n temporaryBlockScrollTag = 0,\n temporaryNestedScroll,\n androidTouchSlop,\n 'main-thread:gesture': gesture,\n } = props\n // generates binding events dynamically\n const scrollViewRegisteredEvents = useRef<Record<string, string>>({\n ...ScrollEventsMapping,\n ...ExposureEventsMapping,\n ...TouchEventsMapping,\n ...LayoutEventsMapping,\n ...ScrollViewEventMapping,\n })\n const normalizedLazyOptions: LazyOptions | undefined = lazyOptions\n ? { firstScreenItemCount: 1, ...lazyOptions }\n : undefined\n const registerEvents = useRegisteredEvents(\n props,\n scrollViewRegisteredEvents.current,\n )\n const normalizedStyle: CSSProperties = {\n zIndex: 0,\n ...style,\n }\n\n const isHorizontal = () => {\n return scrollOrientation ? scrollOrientation === 'horizontal' : horizontal\n }\n\n // Initialize bounceableProps\n let enableBounce = false\n let bounceableProps: BounceableBasicProps = { enableBounces: false }\n if (typeof bounceableOptions === 'boolean') {\n // Initialize the default value if the bounceableOptions is simply 'true' without specific options\n enableBounce = bounceableOptions\n bounceableProps = {\n enableBounces: enableBounce,\n singleSidedBounce: 'both',\n alwaysBouncing: true,\n validAnimationVersion: true,\n }\n } else if (typeof bounceableOptions === 'object') {\n enableBounce = bounceableOptions.enableBounces\n bounceableProps = bounceableOptions\n bounceableProps.singleSidedBounce = bounceableOptions.singleSidedBounce\n ?? 'both'\n bounceableProps.alwaysBouncing = bounceableOptions.alwaysBouncing ?? true\n bounceableProps.validAnimationVersion =\n bounceableOptions.validAnimationVersion ?? true\n }\n // Only when the enableBounces is true and singleSidedBounce is set to 'iOSBounces' will it use default bounces effect on iOS.\n const platformBounces = enableBounce\n && bounceableProps?.singleSidedBounce === 'iOSBounces'\n\n const shouldEnableNested = () => {\n if (\n SystemInfo.platform === 'iOS' && scrollPropagationBehavior !== 'propagate'\n ) {\n return false\n }\n return true\n }\n\n const renderChildren = (\n children: ReactNode,\n lazyOptions: LazyOptions | undefined,\n ) => {\n if (!Array.isArray(children)) {\n return children\n }\n const lazy = lazyOptions?.enableLazy\n return children.map((item: ReactNode, index: number) => {\n if (lazy && index >= Number(lazyOptions?.firstScreenItemCount)) {\n return (\n <LazyComponent\n key={`${scrollviewId}_lazy_${index}`}\n scene={lazyOptions?.scene}\n pid={`pid_${index}`}\n estimatedStyle={lazyOptions?.estimatedItemStyle}\n top={lazyOptions?.exposureTop}\n bottom={lazyOptions?.exposureBottom}\n left={lazyOptions?.exposureLeft}\n right={lazyOptions?.exposureRight}\n >\n {item}\n </LazyComponent>\n )\n }\n return item\n })\n }\n\n // These props will be spread directly to <scroll-view> element. Make sure it's valid\n type ExtendedScrollViewElementProps = ScrollViewElementProps & {\n 'scroll-x': boolean\n 'scroll-y': boolean\n }\n const elementProps: ExtendedScrollViewElementProps & {\n 'enable-scroll-monitor': boolean\n 'scroll-monitor-tag'?: string\n 'main-thread:gesture'?: GestureKind\n 'enable-new-nested'?: boolean\n 'enable-nested-scroll'?: boolean\n 'force-can-scroll'?: boolean\n 'ios-block-gesture-class'?: string\n 'ios-recognized-view-tag'?: number\n 'className'?: string\n 'style'?: CSSProperties\n 'bounces'?: boolean\n } = {\n 'id': scrollviewId,\n 'scroll-x': isHorizontal(),\n 'scroll-y': !isHorizontal(),\n 'enable-scroll-monitor': enableScrollMonitor,\n 'scroll-monitor-tag': scrollMonitorTag,\n 'main-thread:gesture': gesture as GestureKind,\n 'force-can-scroll': scrollPropagationBehavior === 'preventPropagate',\n 'ios-block-gesture-class': scrollPropagationBehavior === 'preventPropagate'\n ? temporaryBlockScrollClass\n : '',\n 'ios-recognized-view-tag': scrollPropagationBehavior === 'preventPropagate'\n ? temporaryBlockScrollTag\n : 0,\n 'enable-nested-scroll': SystemInfo.platform === 'Android'\n ? (temporaryNestedScroll ?? true)\n : shouldEnableNested(),\n 'enable-new-nested': true,\n 'className': className,\n 'style': normalizedStyle,\n 'bounces': platformBounces,\n 'enable-scroll': enableScroll,\n ...(androidTouchSlop !== undefined\n && { 'android-touch-slop': androidTouchSlop }),\n ...registerEvents,\n }\n\n if (\n enableBounce\n && bounceableProps.singleSidedBounce !== 'iOSBounces'\n && bounceableProps.singleSidedBounce !== 'none'\n ) {\n return (\n <ScrollViewWithBouncesHook\n elementProps={elementProps}\n bounceableOptions={bounceableProps}\n debugLog={debugLog}\n enableRTL={enableRTL}\n sticky={sticky}\n >\n {renderChildren(children, normalizedLazyOptions)}\n </ScrollViewWithBouncesHook>\n )\n } else {\n return (\n <ScrollViewBasic elementProps={elementProps} sticky={sticky}>\n {renderChildren(children, normalizedLazyOptions)}\n </ScrollViewBasic>\n )\n }\n}\n"],"names":["ScrollView","memo","forwardRef","ScrollViewImpl","ScrollViewEventMapping","props","_ref","scrollviewId","horizontal","style","children","scrollOrientation","lazyOptions","className","debugLog","enableRTL","bounceableOptions","enableScroll","enableScrollMonitor","scrollMonitorTag","sticky","scrollPropagationBehavior","temporaryBlockScrollClass","temporaryBlockScrollTag","temporaryNestedScroll","androidTouchSlop","gesture","scrollViewRegisteredEvents","useRef","ScrollEventsMapping","ExposureEventsMapping","TouchEventsMapping","LayoutEventsMapping","normalizedLazyOptions","undefined","registerEvents","useRegisteredEvents","normalizedStyle","isHorizontal","enableBounce","bounceableProps","platformBounces","shouldEnableNested","SystemInfo","renderChildren","Array","lazy","item","index","Number","LazyComponent","elementProps","ScrollViewWithBouncesHook","ScrollViewBasic"],"mappings":";;;;;;;AAqCO,MAAMA,aAAaC,KAAKC,WAAWC;AAE1C,MAAMC,yBAAiD;IACrD,qBAAqB;IACrB,SAAS;AACX;AAuBA,SAASD,eACPE,KAAsB,EACtBC,IAAiC;IAEjC,MAAM,EACJC,eAAe,YAAY,EAC3BC,aAAa,KAAK,EAClBC,KAAK,EACLC,QAAQ,EACRC,iBAAiB,EACjBC,WAAW,EACXC,YAAY,EAAE,EACdC,WAAW,KAAK,EAChBC,YAAY,KAAK,EACjBC,oBAAoB;QAClB,eAAe;QACf,mBAAmB;IACrB,CAAC,EACDC,eAAe,IAAI,EACnBC,sBAAsB,KAAK,EAC3BC,gBAAgB,EAChBC,MAAM,EACNC,4BAA4B,QAAQ,EACpCC,4BAA4B,kBAAkB,EAC9CC,0BAA0B,CAAC,EAC3BC,qBAAqB,EACrBC,gBAAgB,EAChB,uBAAuBC,OAAO,EAC/B,GAAGrB;IAEJ,MAAMsB,6BAA6BC,OAA+B;QAChE,GAAGC,mBAAmB;QACtB,GAAGC,qBAAqB;QACxB,GAAGC,kBAAkB;QACrB,GAAGC,mBAAmB;QACtB,GAAG5B,sBAAsB;IAC3B;IACA,MAAM6B,wBAAiDrB,cACnD;QAAE,sBAAsB;QAAG,GAAGA,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AMA,aAAa,cACnB,OAAOA,aAAa,eACrB;YACC,CAACmC,KAAK;UACR,EAAEG;YAGN,OAAOH;QACT;IACF;IAOA,MAAMI,eAYF;QACF,IAAM5C;QACN,YAAY+B;QACZ,YAAY,CAACA;QACb,yBAAyBpB;QACzB,sBAAsBC;QACtB,uBAAuBO;QACvB,oBAAoBL,AAA8B,uBAA9BA;QACpB,2BAA2BA,AAA8B,uBAA9BA,4BACvBC,4BACA;QACJ,2BAA2BD,AAA8B,uBAA9BA,4BACvBE,0BACA;QACJ,wBAAwBoB,AAAwB,cAAxBA,WAAW,QAAQ,GACtCnB,yBAAyB,OAC1BkB;QACJ,qBAAqB;QACrB,WAAa7B;QACb,OAASwB;QACT,SAAWI;QACX,iBAAiBxB;QACjB,GAAIQ,AAAqBS,WAArBT,oBACC;YAAE,sBAAsBA;QAAiB,CAAC;QAC/C,GAAGU,cAAc;IACnB;IAEA,IACEI,gBACGC,AAAsC,iBAAtCA,gBAAgB,iBAAiB,IACjCA,AAAsC,WAAtCA,gBAAgB,iBAAiB,EAEpC,QACGY,0BACC,cAAcD,cACd,mBAAmBX,iBACnB,UAAU1B,UACV,WAAWC,WACX,QAAQK,QACT;QACC,CAACwB,eAAelC,UAAUuB,uBAAuB;MACnD,EAAEmB;IAGJ,QACGC,gBAAgB,cAAcF,cAAc,QAAQ/B,QAAQ;QAC3D,CAACwB,eAAelC,UAAUuB,uBAAuB;MACnD,EAAEoB;AAGR"}
1
+ {"version":3,"file":"index.jsx","sources":["webpack://@lynx-js/lynx-ui-scroll-view/./src/index.tsx"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport { forwardRef, memo, useRef } from '@lynx-js/react'\nimport type { ForwardedRef, ReactNode } from '@lynx-js/react'\n\nimport '@lynx-js/gesture-runtime'\nimport type { GestureKind } from '@lynx-js/gesture-runtime'\nimport type { LazyOptions } from '@lynx-js/lynx-ui-common'\nimport {\n ExposureEventsMapping,\n LayoutEventsMapping,\n ScrollEventsMapping,\n TouchEventsMapping,\n useRegisteredEvents,\n} from '@lynx-js/lynx-ui-common'\nimport { LazyComponent } from '@lynx-js/lynx-ui-lazy-component'\nimport type {\n CSSProperties,\n ScrollViewProps as ScrollViewElementProps,\n} from '@lynx-js/types'\n\nimport ScrollViewBasic from './ScrollViewBasic'\nimport ScrollViewWithBouncesHook from './ScrollViewWithBouncesHook'\nimport type {\n BounceableBasicProps,\n ScrollViewProps,\n ScrollViewRef,\n ScrollView as ScrollViewType,\n} from './types'\n\nexport type { ScrollViewProps, ScrollViewRef }\nexport { useBounce } from './hooks/useBounce'\nexport type { bounceHandlers } from './hooks/useBounce'\nexport type { BounceableBasicProps } from './types'\n\nexport const ScrollView = memo(forwardRef(ScrollViewImpl)) as ScrollViewType\n\nconst ScrollViewEventMapping: Record<string, string> = {\n onContentSizeChange: 'bindcontentsizechanged',\n onWheel: 'bindwheel',\n}\n\n/**\n * @example\n * ```javascript\n * <ScrollView\n scene={`viewpager_${index1}`}\n style={{ width: '100%', height: '100%' }}\n estimatedItemStyle={{ width: '100%', height: '800px' }}\n scrollOrientation='vertical'\n exposureRight=\"50px\"\n exposureBottom=\"220px\"\n >\n {scrollview.map((item, index) => (\n <view\n style={`width:100%;height:580rpx;`}\n >\n <text>{`slot-${index}`}</text>\n </view>\n ))}\n </ScrollView>\n * ```\n */\nfunction ScrollViewImpl(\n props: ScrollViewProps,\n _ref: ForwardedRef<ScrollViewRef>,\n) {\n const {\n scrollviewId = 'scrollview',\n horizontal = false,\n style,\n children,\n scrollOrientation,\n lazyOptions,\n className = '',\n debugLog = false,\n enableRTL = false,\n bounceableOptions = {\n enableBounces: true,\n singleSidedBounce: 'iOSBounces',\n },\n enableScroll = true,\n enableScrollMonitor = false,\n scrollMonitorTag,\n sticky,\n scrollPropagationBehavior = 'native',\n temporaryBlockScrollClass = 'BDXLynxViewPager',\n temporaryBlockScrollTag = 0,\n temporaryNestedScroll,\n androidTouchSlop,\n 'main-thread:gesture': gesture,\n } = props\n // generates binding events dynamically\n const scrollViewRegisteredEvents = useRef<Record<string, string>>({\n ...ScrollEventsMapping,\n ...ExposureEventsMapping,\n ...TouchEventsMapping,\n ...LayoutEventsMapping,\n ...ScrollViewEventMapping,\n })\n const normalizedLazyOptions: LazyOptions | undefined = lazyOptions\n ? { firstScreenItemCount: 1, ...lazyOptions }\n : undefined\n const registerEvents = useRegisteredEvents(\n props,\n scrollViewRegisteredEvents.current,\n )\n const normalizedStyle: CSSProperties = {\n zIndex: 0,\n ...style,\n }\n\n const isHorizontal = () => {\n return scrollOrientation ? scrollOrientation === 'horizontal' : horizontal\n }\n\n // Initialize bounceableProps\n let enableBounce = false\n let bounceableProps: BounceableBasicProps = { enableBounces: false }\n if (typeof bounceableOptions === 'boolean') {\n // Initialize the default value if the bounceableOptions is simply 'true' without specific options\n enableBounce = bounceableOptions\n bounceableProps = {\n enableBounces: enableBounce,\n singleSidedBounce: 'both',\n alwaysBouncing: true,\n validAnimationVersion: true,\n }\n } else if (typeof bounceableOptions === 'object') {\n enableBounce = bounceableOptions.enableBounces\n bounceableProps = bounceableOptions\n bounceableProps.singleSidedBounce = bounceableOptions.singleSidedBounce\n ?? 'both'\n bounceableProps.alwaysBouncing = bounceableOptions.alwaysBouncing ?? true\n bounceableProps.validAnimationVersion =\n bounceableOptions.validAnimationVersion ?? true\n }\n // Only when the enableBounces is true and singleSidedBounce is set to 'iOSBounces' will it use default bounces effect on iOS.\n const platformBounces = enableBounce\n && bounceableProps?.singleSidedBounce === 'iOSBounces'\n\n const shouldEnableNested = () => {\n if (\n SystemInfo.platform === 'iOS' && scrollPropagationBehavior !== 'propagate'\n ) {\n return false\n }\n return true\n }\n\n const renderChildren = (\n children: ReactNode,\n lazyOptions: LazyOptions | undefined,\n ) => {\n if (!Array.isArray(children)) {\n return children\n }\n const lazy = lazyOptions?.enableLazy\n return children.map((item: ReactNode, index: number) => {\n if (lazy && index >= Number(lazyOptions?.firstScreenItemCount)) {\n return (\n <LazyComponent\n key={`${scrollviewId}_lazy_${index}`}\n scene={lazyOptions?.scene}\n pid={`pid_${index}`}\n estimatedStyle={lazyOptions?.estimatedItemStyle}\n top={lazyOptions?.exposureTop}\n bottom={lazyOptions?.exposureBottom}\n left={lazyOptions?.exposureLeft}\n right={lazyOptions?.exposureRight}\n >\n {item}\n </LazyComponent>\n )\n }\n return item\n })\n }\n\n // These props will be spread directly to <scroll-view> element. Make sure it's valid\n type ExtendedScrollViewElementProps = ScrollViewElementProps & {\n 'scroll-x': boolean\n 'scroll-y': boolean\n }\n const elementProps: ExtendedScrollViewElementProps & {\n 'enable-scroll-monitor': boolean\n 'scroll-monitor-tag'?: string\n 'main-thread:gesture'?: GestureKind\n 'enable-new-nested'?: boolean\n 'enable-nested-scroll'?: boolean\n 'force-can-scroll'?: boolean\n 'ios-block-gesture-class'?: string\n 'ios-recognized-view-tag'?: number\n 'className'?: string\n 'style'?: CSSProperties\n 'bounces'?: boolean\n } = {\n 'id': scrollviewId,\n 'scroll-x': isHorizontal(),\n 'scroll-y': !isHorizontal(),\n 'enable-scroll-monitor': enableScrollMonitor,\n 'scroll-monitor-tag': scrollMonitorTag,\n 'main-thread:gesture': gesture,\n 'force-can-scroll': scrollPropagationBehavior === 'preventPropagate',\n 'ios-block-gesture-class': scrollPropagationBehavior === 'preventPropagate'\n ? temporaryBlockScrollClass\n : '',\n 'ios-recognized-view-tag': scrollPropagationBehavior === 'preventPropagate'\n ? temporaryBlockScrollTag\n : 0,\n 'enable-nested-scroll': SystemInfo.platform === 'Android'\n ? (temporaryNestedScroll ?? true)\n : shouldEnableNested(),\n 'enable-new-nested': true,\n 'className': className,\n 'style': normalizedStyle,\n 'bounces': platformBounces,\n 'enable-scroll': enableScroll,\n ...(androidTouchSlop !== undefined\n && { 'android-touch-slop': androidTouchSlop }),\n ...registerEvents,\n }\n\n if (\n enableBounce\n && bounceableProps.singleSidedBounce !== 'iOSBounces'\n && bounceableProps.singleSidedBounce !== 'none'\n ) {\n return (\n <ScrollViewWithBouncesHook\n elementProps={elementProps}\n bounceableOptions={bounceableProps}\n debugLog={debugLog}\n enableRTL={enableRTL}\n sticky={sticky}\n >\n {renderChildren(children, normalizedLazyOptions)}\n </ScrollViewWithBouncesHook>\n )\n } else {\n return (\n <ScrollViewBasic elementProps={elementProps} sticky={sticky}>\n {renderChildren(children, normalizedLazyOptions)}\n </ScrollViewBasic>\n )\n }\n}\n"],"names":["ScrollView","memo","forwardRef","ScrollViewImpl","ScrollViewEventMapping","props","_ref","scrollviewId","horizontal","style","children","scrollOrientation","lazyOptions","className","debugLog","enableRTL","bounceableOptions","enableScroll","enableScrollMonitor","scrollMonitorTag","sticky","scrollPropagationBehavior","temporaryBlockScrollClass","temporaryBlockScrollTag","temporaryNestedScroll","androidTouchSlop","gesture","scrollViewRegisteredEvents","useRef","ScrollEventsMapping","ExposureEventsMapping","TouchEventsMapping","LayoutEventsMapping","normalizedLazyOptions","undefined","registerEvents","useRegisteredEvents","normalizedStyle","isHorizontal","enableBounce","bounceableProps","platformBounces","shouldEnableNested","SystemInfo","renderChildren","Array","lazy","item","index","Number","LazyComponent","elementProps","ScrollViewWithBouncesHook","ScrollViewBasic"],"mappings":";;;;;;;AAqCO,MAAMA,aAAaC,KAAKC,WAAWC;AAE1C,MAAMC,yBAAiD;IACrD,qBAAqB;IACrB,SAAS;AACX;AAuBA,SAASD,eACPE,KAAsB,EACtBC,IAAiC;IAEjC,MAAM,EACJC,eAAe,YAAY,EAC3BC,aAAa,KAAK,EAClBC,KAAK,EACLC,QAAQ,EACRC,iBAAiB,EACjBC,WAAW,EACXC,YAAY,EAAE,EACdC,WAAW,KAAK,EAChBC,YAAY,KAAK,EACjBC,oBAAoB;QAClB,eAAe;QACf,mBAAmB;IACrB,CAAC,EACDC,eAAe,IAAI,EACnBC,sBAAsB,KAAK,EAC3BC,gBAAgB,EAChBC,MAAM,EACNC,4BAA4B,QAAQ,EACpCC,4BAA4B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+1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-scroll-view",
3
- "version": "3.133.0",
3
+ "version": "3.133.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@lynx-js/gesture-runtime": "2.1.1",
29
- "@lynx-js/lynx-ui-common": "3.133.0",
30
- "@lynx-js/lynx-ui-lazy-component": "3.133.0"
29
+ "@lynx-js/lynx-ui-lazy-component": "3.133.1",
30
+ "@lynx-js/lynx-ui-common": "3.133.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@lynx-js/react": "0.114.0",
package/src/index.tsx CHANGED
@@ -202,7 +202,7 @@ function ScrollViewImpl(
202
202
  'scroll-y': !isHorizontal(),
203
203
  'enable-scroll-monitor': enableScrollMonitor,
204
204
  'scroll-monitor-tag': scrollMonitorTag,
205
- 'main-thread:gesture': gesture as GestureKind,
205
+ 'main-thread:gesture': gesture,
206
206
  'force-can-scroll': scrollPropagationBehavior === 'preventPropagate',
207
207
  'ios-block-gesture-class': scrollPropagationBehavior === 'preventPropagate'
208
208
  ? temporaryBlockScrollClass