guqingming / react-simple-verify

React简易滑动验证组件
MIT License
29 stars 11 forks source link

移动端触摸屏滑动不了! #5

Open cnyuqiang opened 2 years ago

cnyuqiang commented 2 years ago

SDGIF_Rusult_1

cnyuqiang commented 2 years ago

帮你修下bug 如下 line : 111

ReactSimpleVerify.prototype.mousedown = function (e) {

      if (this.isSuccess || this.isMousedown) {
        return;
      }
      this.x1 = e.nativeEvent.x || e.touches[0].clientX;
      this.isMousedown = true;
       console.log(this.x1, 1);
    };
guqingming commented 2 years ago

Thanks. Fixed at 1.0.11

Hanchengluo commented 1 year ago

还是[滑动不了