mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
往前滑时, 不往后滑
This commit is contained in:
@@ -289,7 +289,7 @@ function GetPowerRecord() {
|
||||
html += "<div class='power_pre' style='height:"+y+"px;left:"+position+"px;'></div>";
|
||||
position += 1;
|
||||
}
|
||||
if (power.powers.length != 0) {
|
||||
if (power.powers.length != 0 && power_line.scrollWidth - power_line.offsetWidth - power_line.scrollLeft < 10) {
|
||||
power_line.innerHTML += html;
|
||||
power_line.scrollTo(power_line.scrollWidth, 0); //滑动到最后
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user