Commit 20ec6375 by doszhang

dos

parent 73fd9206
...@@ -142,9 +142,20 @@ function chooseColorMove(e) { ...@@ -142,9 +142,20 @@ function chooseColorMove(e) {
} else if (left > 26.62) { } else if (left > 26.62) {
left = 26.62; left = 26.62;
} }
let index = 0; if (left < 5.1) {
index = Math.floor((left - 4.2916) / (87 / fontSize)); console.log(1);
console.log(index); } else if (left > 5.1 && left < 11.5) {
console.log(2);
} else if (left > 11.5 && left < 16.2) {
console.log(3);
} else if (left > 16.2 && left < 21) {
console.log(4);
} else if (left > 21 && left < 24.84) {
console.log(5);
} else if (left > 24.84) {
console.log(6);
}
$('.personal-page .btn-choose-color').css('left', left + 'rem'); $('.personal-page .btn-choose-color').css('left', left + 'rem');
startX = moveX; startX = moveX;
......
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