Commit cccd31b5 by doszhang

dos

parent 20ec6375
...@@ -133,10 +133,12 @@ function chooseColorMove(e) { ...@@ -133,10 +133,12 @@ function chooseColorMove(e) {
timer = setTimeout(() => { timer = setTimeout(() => {
let touch = e.originalEvent.targetTouches[0]; let touch = e.originalEvent.targetTouches[0];
moveX = touch.pageX / fontSize; moveX = touch.pageX / fontSize;
console.log(moveX);
let left = parseFloat($('.personal-page .btn-choose-color').css('left')) / fontSize; let left = parseFloat($('.personal-page .btn-choose-color').css('left')) / fontSize;
left = left + (moveX - startX); left = left + (moveX - startX);
console.log(left);
if (left < 4.2916) { if (left < 4.2916) {
left = 4.2916; left = 4.2916;
} else if (left > 26.62) { } else if (left > 26.62) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment