Skip to content

Commit

Permalink
fix: mip-iframe scrolling 保持和mip1一致 (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghuiquan authored and yenshih committed Dec 27, 2018
1 parent 60bbee7 commit cb6f6c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mip/src/components/mip-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MESSAGE_PAGE_RESIZE
} from '../page/const'

const {platform, css, event} = util
const {css, event} = util

let attrList = ['allowfullscreen', 'allowtransparency', 'sandbox']

Expand Down Expand Up @@ -47,7 +47,7 @@ class MipIframe extends CustomElement {

this.iframe = document.createElement('iframe')
this.iframe.frameBorder = '0'
this.iframe.scrolling = platform.isIos() ? /* istanbul ignore next */ 'no' : 'yes'
this.iframe.scrolling = 'no'

this.applyFillContent(this.iframe)
this.element.appendChild(this.iframe)
Expand Down

0 comments on commit cb6f6c0

Please sign in to comment.