nuke-scroll-view
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -27,3 +27,5 @@ # ScrollView demo | ||
{key:'B',bg:'#3089dc',color:'#ffffff'}, | ||
{key:'C',bg:'#f1f1f1',color:'#3d4145'} | ||
{key:'C',bg:'#f1f1f1',color:'#3d4145'}, | ||
{key:'F',bg:'yellow',color:'#ffffff'}, | ||
{key:'G',bg:'red',color:'#ffffff'} | ||
] | ||
@@ -30,0 +32,0 @@ } |
# Changelog | ||
## 0.0.3 / 2017-06-16 | ||
* [[db0444d](http://gitlab.alibaba-inc.com/nuke/scroll-view/commit/db0444da70f0b94bcc665b6f600732eae33938dc)] - `fix` fix h5 pull to refresh | ||
## 0.0.2 / 2017-05-25 | ||
@@ -5,0 +9,0 @@ |
@@ -25,6 +25,2 @@ 'use strict'; | ||
var _wptr = require('./mods/wptr.js'); | ||
var _wptr2 = _interopRequireDefault(_wptr); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -40,5 +36,10 @@ | ||
var WebPullToRefresh = void 0; | ||
var isWeex = _nukeEnv2.default.isWeex, | ||
isWeb = _nukeEnv2.default.isWeb; | ||
if (isWeb) { | ||
WebPullToRefresh = require('./mods/wptr.js'); | ||
} | ||
var DEFAULT_END_REACHED_THRESHOLD = 500; | ||
@@ -168,3 +169,3 @@ var DEFAULT_SCROLL_CALLBACK_THROTTLE = 50; | ||
if (isWeb && !this.state.initializedWptr) { | ||
(0, _wptr2.default)().init({ | ||
WebPullToRefresh().init({ | ||
bodyEl: this.refs.scroller, | ||
@@ -176,3 +177,3 @@ ptrEl: this.refs.refreshX, | ||
resistance: this.props.resistance || undefined, | ||
hammerOptions: this.props.hammerOptions || undefined | ||
hammerOptions: this.props.hammerOptions || { touchAction: 'auto' } | ||
}); | ||
@@ -179,0 +180,0 @@ this.setState({ |
{ | ||
"name": "nuke-scroll-view", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "滚动组件", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
32184
574