提交 c6964211 编写于 作者: Q qiang

fix: disableScrollBounce 区分平台

上级 5cfd3054
<script>
import {
disableScrollBounce,
deepClone
} from 'uni-shared'
import {
disableScrollBounce
} from 'uni-platform/helpers/scroll'
function calc (e) {
return Math.sqrt(e.x * e.x + e.y * e.y)
......
......@@ -13,7 +13,7 @@ import {
} from './utils'
import {
disableScrollBounce
} from 'uni-shared'
} from 'uni-platform/helpers/scroll'
var requesting = false
function _requestAnimationFrame (e) {
......
......@@ -9,7 +9,7 @@ import {
} from 'uni-mixins/scroller/Spring'
import {
disableScrollBounce
} from 'uni-shared'
} from 'uni-platform/helpers/scroll'
function initClick (dom) {
const MAX_MOVE = 20
......
......@@ -71,9 +71,11 @@
<script>
import scroller from 'uni-mixins/scroller/index'
import {
supportsPassive,
disableScrollBounce
supportsPassive
} from 'uni-shared'
import {
disableScrollBounce
} from 'uni-platform/helpers/scroll'
const passiveOptions = supportsPassive ? {
passive: true
......
import {
plusReady
} from './platform'
} from 'uni-shared'
let view
let pullToRefreshStyle
let disabled
......
export function disableScrollBounce ({
disable
}) {
}
......@@ -2,6 +2,5 @@ export * from './env'
export * from './util'
export * from './color'
export * from './query'
export * from './scroll'
export * from './platform'
export * from './callback'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册