fix(#I13X3Z): Chrome 手机客户端滑块无法验证通过

#comment
移动端 Chrome 滑动轨迹为 decimal 类型数值导致

#Issue
link https://gitee.com/LongbowEnterprise/SliderCaptcha/issues/I13X3Z
This commit is contained in:
Argo Zhang 2019-10-24 12:02:52 +08:00
parent 69db63d8b2
commit 670855af4b
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@
that.sliderContainer.addClass('sliderContainer_active');
that.sliderMask.style.width = (moveX + 4) + 'px';
trail.push(moveY);
trail.push(Math.round(moveY));
};
var handleDragEnd = function (e) {

View File

@ -252,7 +252,7 @@
that.sliderContainer.addClass('sliderContainer_active');
that.sliderMask.style.width = (moveX + 4) + 'px';
trail.push(moveY);
trail.push(Math.round(moveY));
};
var handleDragEnd = function (e) {