Skip to content

Commit

Permalink
fix(components): 修复 H5 虚拟列表滚动后不能点击的问题,fix #7140
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Sep 1, 2020
1 parent d252772 commit 9e03ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default function createListComponent ({
ref: innerRef,
style: {
height: this._getStyleValue(isHorizontal ? '100%' : estimatedTotalSize),
pointerEvents: isScrolling ? 'none' : undefined,
pointerEvents: isScrolling ? 'none' : 'auto',
width: this._getStyleValue(isHorizontal ? estimatedTotalSize : '100%')
}
}))
Expand Down
1 change: 1 addition & 0 deletions packages/taro-runtime/src/dom/style_properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ export const styleProperties = [
'placeItems',
'placeSelf',
'playDuring',
'pointerEvents',
'position',
'quotes',
'regionFragment',
Expand Down

0 comments on commit 9e03ecd

Please sign in to comment.