提交 9f9eef9e 编写于 作者: Q qiang

fix: touchtrack

上级 99ed09f6
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
_onTrack: function (e) { _onTrack: function (e) {
if (!this.disabled) { if (!this.disabled) {
return e.detail.state === 'move' ? (this._onUserChangedValue({ return e.detail.state === 'move' ? (this._onUserChangedValue({
x: e.detail.x0 x: e.detail.x
}), this.$trigger('changing', e, { }), this.$trigger('changing', e, {
value: this.sliderValue value: this.sliderValue
}), !1) : (e.detail.state === 'end' && this.$trigger('change', e, { }), !1) : (e.detail.state === 'end' && this.$trigger('change', e, {
......
...@@ -35,8 +35,8 @@ export default { ...@@ -35,8 +35,8 @@ export default {
changedTouches: $event.changedTouches, changedTouches: $event.changedTouches,
detail: { detail: {
state, state,
x0: x, x: x,
y0: y, y: y,
dx: x - x0, dx: x - x0,
dy: y - y0, dy: y - y0,
ddx: x - x1, ddx: x - x1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册