diff --git a/repo/js/HolyRelicsUp/main.js b/repo/js/HolyRelicsUp/main.js index 6096ffda5..fbf30b018 100644 --- a/repo/js/HolyRelicsUp/main.js +++ b/repo/js/HolyRelicsUp/main.js @@ -982,7 +982,9 @@ async function scrollPageByAttributeSortClick() { // 1. Math.floor(genshinJson.height * 2 / 3) - 计算滚动的高度,为页面高度的2/3并向下取整 // 2. true - 表示是否使用平滑滚动 // 3. 6 - 可能是滚动的延迟时间或步长参数 - await scrollPage(Math.floor(genshinJson.height * 2 / 3), true, 6, 30, 600) + + await scrollPage(Math.floor(genshinJson.height * 1 / 3), true, 6, 30, 600) + } //重置属性排序 @@ -998,7 +1000,7 @@ async function scrollPageByAttributeSortClick() { async function resetAttributeSort(log_off = config.log_off) { let x = Math.floor(genshinJson.width * 200 / 1920) - let y = Math.floor(genshinJson.height * 300 / 1080) + let y = Math.floor(genshinJson.height * 200 / 1080) let h = Math.floor(genshinJson.height * 10 / 1080) let width = Math.floor(genshinJson.width * 450 / 1920); //拖动到看不见辅助排序规则 @@ -1057,8 +1059,9 @@ async function attributeSort(keyword = config.sortAttribute, source = 'attribute } info('筛选:' + attributeKeys.join(','), must) let attributeKeysOk = new Array(); - let x = Math.floor(genshinJson.height * 200 / 1920) - let y = Math.floor(300 * genshinJson.height / 1080) + + let x = Math.floor(genshinJson.width * 200 / 1920) + let y = Math.floor(200 * genshinJson.height / 1080) let h = Math.floor(genshinJson.height * 10 / 1080) await mTo(x, y) await wait(ms)