Commit e1528165 by doszhang

dos

parent 7cd52eb6
...@@ -126,6 +126,7 @@ function chooseColorStart(e) { ...@@ -126,6 +126,7 @@ function chooseColorStart(e) {
} }
function chooseColorMove(e) { function chooseColorMove(e) {
e.preventDefault();
if (timer) { if (timer) {
clearTimeout(timer); clearTimeout(timer);
} }
...@@ -136,7 +137,6 @@ function chooseColorMove(e) { ...@@ -136,7 +137,6 @@ function chooseColorMove(e) {
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