Skip to content

Commit

Permalink
fix(Components): 修复组件中带有浮层的 穿透滚动问题 h5 下 close #286
Browse files Browse the repository at this point in the history
  • Loading branch information
SzHeJason committed Dec 26, 2018
1 parent 9ed24d1 commit 44040dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/action-sheet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default class AtActionSheet extends AtComponent {

handleTouchMove = e => {
e.stopPropagation()
e.preventDefault()
}

render () {
Expand Down
1 change: 1 addition & 0 deletions src/components/float-layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class AtFloatLayout extends AtComponent {

handleTouchMove = e => {
e.stopPropagation()
e.preventDefault()
}

render () {
Expand Down
1 change: 1 addition & 0 deletions src/components/modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class AtModal extends AtComponent {

handleTouchMove = e => {
e.stopPropagation()
e.preventDefault()
}

render () {
Expand Down

0 comments on commit 44040dc

Please sign in to comment.