Commit 178f0f1d by doszhang

dos

parent 0f4bda5a
...@@ -162,6 +162,9 @@ function showItem() { ...@@ -162,6 +162,9 @@ function showItem() {
scrollTimer = setTimeout(() => { scrollTimer = setTimeout(() => {
const scrollTop = $('.wrap-inner').scrollTop(); const scrollTop = $('.wrap-inner').scrollTop();
const scrollLeft = $('.wrap-inner').scrollLeft(); const scrollLeft = $('.wrap-inner').scrollLeft();
if (scrollLeft > 0) {
$('.maruko').css('left', `${scrollLeft + 180}px`)
}
if (nowShowIndex == 1 && scrollTop > 700) { if (nowShowIndex == 1 && scrollTop > 700) {
$('.title,.page1 .cloud').show(); $('.title,.page1 .cloud').show();
nowShowIndex++ nowShowIndex++
...@@ -172,9 +175,7 @@ function showItem() { ...@@ -172,9 +175,7 @@ function showItem() {
$('.toast2').show(); $('.toast2').show();
showItemStatus = true showItemStatus = true
} }
if (scrollLeft > 0) {
$('.maruko').css('left', `${scrollLeft + 180}px`)
}
}, 10) }, 10)
} }
......
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