提交 9416b859 编写于 作者: A AmyFoxFN

<fix>(rate): condition bug

上级 59279778
......@@ -76,12 +76,12 @@
}
},
handleMove(e) {
if (!this.disabled && (!e.type.indexOf(EVENT_TYPE_MOUSE) > -1 || this.mousePressed)) {
this.computeTempValue(e.type.indexOf(EVENT_TYPE_MOUSE) > -1 ? e : e.touches[0])
if (!this.disabled && (e.type.indexOf(EVENT_TYPE_MOUSE) === -1 || this.mousePressed)) {
this.computeTempValue(e.type.indexOf(EVENT_TYPE_MOUSE) === -1 ? e.touches[0] : e)
}
},
handleEnd(e) {
if (!this.disabled && (!e.type.indexOf(EVENT_TYPE_MOUSE) > -1 || this.mousePressed)) {
if (!this.disabled && (e.type.indexOf(EVENT_TYPE_MOUSE) === -1 || this.mousePressed)) {
if (e.type.indexOf(EVENT_TYPE_MOUSE) > -1) {
this.mousePressed = false
document.removeEventListener('mouseup', this.handleEnd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册