@dolphinweex/weex-vue-render 0.2.108 → 0.2.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1803,6 +1803,9 @@ function touchendHandler(event) {
1803
1803
  // fire click, not tap.
1804
1804
  var rect = gesture.element.getBoundingClientRect();
1805
1805
  var rate = 750 / document.documentElement.clientWidth;
1806
+ if (event.cancelable) {
1807
+ event.preventDefault();
1808
+ }
1806
1809
  fireEvent(gesture.element, 'weex$tap', {
1807
1810
  touch: touch,
1808
1811
  touchEvent: event,
@@ -8235,7 +8238,7 @@ var slideMixin = {
8235
8238
 
8236
8239
  // get standard index
8237
8240
  _normalizeIndex: function _normalizeIndex (index) {
8238
- var newIndex = (index + this.frameCount) % this.frameCount;
8241
+ var newIndex = (Number(index) + this.frameCount) % this.frameCount;
8239
8242
  return Math.min(Math.max(newIndex, 0), this.frameCount - 1)
8240
8243
  },
8241
8244
 
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.108"
52
+ "version": "0.2.110"
53
53
  }