Commit 1aafb431 by chenweiran

feat: 增加基于图片拼图切片平移的验证码

1 parent 8ccd01ad
......@@ -93,7 +93,7 @@ function handleDragEnd() {
const { pieceX } = state;
const { diffDistance } = props;
if (Math.abs(pieceX - state.moveDistance) >= (diffDistance || 5)) {
if (Math.abs(pieceX - state.moveDistance) >= (diffDistance || 3)) {
setLeft('0');
state.moveDistance = 0;
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!