Skip to content

Commit 5e386ab

Browse files
committed
修复滑动延时问题
1 parent 1d9dc2c commit 5e386ab

20 files changed

+34
-34
lines changed

src/common/funcList.bak/015_探索_换狗粮.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ export class Func015 implements IFuncOrigin {
8686
sleep(1500);
8787

8888
if ('打手' == thisconf.type) {
89-
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[7], [800, 1200], 0, 200);
90-
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[6], [200, 400], 0, 500);
91-
thisScript.regionSwipe(thisOperator[0].oper[6], thisOperator[0].oper[8], [1200, 1500], 0, 200);
89+
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[7], [800, 1200], 200);
90+
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[6], [200, 400], 500);
91+
thisScript.regionSwipe(thisOperator[0].oper[6], thisOperator[0].oper[8], [1200, 1500], 200);
9292
} else if ('队长' == thisconf.type) {
93-
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[9], [800, 1200], 0, 200);
94-
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[6], [200, 400], 0, 500);
95-
thisScript.regionSwipe(thisOperator[0].oper[6], thisOperator[0].oper[10], [1200, 1500], 0, 200);
93+
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[9], [800, 1200], 200);
94+
thisScript.regionSwipe(thisOperator[0].oper[5], thisOperator[0].oper[6], [200, 400], 500);
95+
thisScript.regionSwipe(thisOperator[0].oper[6], thisOperator[0].oper[10], [1200, 1500], 200);
9696
}
9797
} else {
9898
// N卡
@@ -117,14 +117,14 @@ export class Func015 implements IFuncOrigin {
117117
thisOperator[0].oper[13][1],
118118
thisOperator[0].oper[13][2] + (thisOperator[0].oper[14][2] - thisOperator[0].oper[13][2]) * handlePos / 100,
119119
thisOperator[0].oper[13][3],
120-
], [800, 1200], 0, 200);
120+
], [800, 1200], 200);
121121
sleep(500);
122122
thisScript.keepScreen(true);
123123
}
124124
let point = thisScript.findMultiColor('准备_N卡');
125125
let pointCnt = 20;
126126
while (!point && --pointCnt) {
127-
thisScript.regionSwipe(thisOperator[0].oper[12], thisOperator[0].oper[11], [800, 1200], 0, 200);
127+
thisScript.regionSwipe(thisOperator[0].oper[12], thisOperator[0].oper[11], [800, 1200], 200);
128128
sleep(1000);
129129
point = thisScript.findMultiColor('准备_N卡');
130130
thisScript.keepScreen(true);

src/common/funcList.bak/020_百鬼夜行_随机散豆.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class Func020 implements IFuncOrigin {
8080
// desc: thisOperator[0].desc
8181
// }]
8282
// })) {
83-
// thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 0, 200);
83+
// thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 200);
8484
// return true;
8585
// }
8686
if (thisScript.oper({
@@ -103,7 +103,7 @@ export class Func020 implements IFuncOrigin {
103103
desc: thisOperator[0].desc
104104
}]
105105
})) {
106-
thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 0, 200);
106+
thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 200);
107107
return true;
108108
}
109109
return thisScript.oper({

src/common/funcList.bak/047_悬赏_点击已追踪任务.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class Func047 implements IFuncOrigin {
9696
return;
9797
}
9898
}
99-
thisScript.regionSwipe(thisOperator[1].oper[0], thisOperator[1].oper[1], [100, 300], 0, 2000);
99+
thisScript.regionSwipe(thisOperator[1].oper[0], thisOperator[1].oper[1], [100, 300], 2000);
100100
swiper++
101101
return true
102102
}

src/common/funcList.bak/115_喜乐雀儿戏.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class Func113 implements IFuncOrigin {
121121
if (point) {
122122
const oper1 = [point.x + 30, point.y + 40, point.x + 40, point.y + 50, 1000]
123123
const oper2 = [point.x + 30, point.y - 200, point.x + 40, point.y - 190, 1000]
124-
thisScript.regionSwipe(oper1, oper2, [500, 700], 0, 1000);
124+
thisScript.regionSwipe(oper1, oper2, [500, 700], 1000);
125125
return true;
126126
}
127127
}

src/common/funcList.bak/129_夏日游园会_消消乐.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function erase(map) {
326326
}
327327
for (let i = 0; i < m; i++) {
328328
for (let j = 0; j < n; j++) {
329-
map[i][j] = Math.max(map[i][j], 0);
329+
map[i][j] = Math.max(map[i][j]);
330330
}
331331
}
332332

src/common/funcList.bak/206_六道萤草_宁息.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class Func206 implements IFuncOrigin {
141141
if (!toClick) {
142142
// 没找到就执行下一个操作
143143
if (typeof thisScript.global.d6NextStation === 'undefined' || thisScript.global.d6NextStation === '翻页') {
144-
thisScript.regionBezierSwipe(thisOperator[0].oper[4], thisOperator[0].oper[5], [400, 1000], 0, 200);
144+
thisScript.regionBezierSwipe(thisOperator[0].oper[4], thisOperator[0].oper[5], [400, 1000], 200);
145145
thisScript.global.d6NextStation = '刷新';
146146
} else if (thisScript.global.d6NextStation === '刷新' && coins >= 300) {
147147
thisScript.regionClick([thisOperator[0].oper[6]]);
@@ -151,7 +151,7 @@ export class Func206 implements IFuncOrigin {
151151
// // 刷新弹出确认,没有到上限
152152
// thisScript.regionClick([thisOperator[0].oper[7]]);
153153
// // 刷新后再翻回来
154-
// thisScript.regionBezierSwipe(thisOperator[0].oper[5], thisOperator[0].oper[4], [400, 1000], 0, 200);
154+
// thisScript.regionBezierSwipe(thisOperator[0].oper[5], thisOperator[0].oper[4], [400, 1000], 200);
155155
// } else {
156156
// // 刷新没退出确认,到上限了,直接退出
157157
// thisScript.regionClick([thisOperator[0].oper[0], thisOperator[0].oper[1]]);
@@ -167,7 +167,7 @@ export class Func206 implements IFuncOrigin {
167167
thisScript.global.d6NxFilter = [];
168168
thisScript.global.d6NextStation = '翻页';
169169
} else {
170-
thisScript.regionBezierSwipe(thisOperator[0].oper[5], thisOperator[0].oper[4], [400, 1000], 0, 200);
170+
thisScript.regionBezierSwipe(thisOperator[0].oper[5], thisOperator[0].oper[4], [400, 1000], 200);
171171
thisScript.global.d6NxRefreshCnt++;
172172
}
173173
thisScript.global.d6NxFilter = [];

src/common/funcList/012_寮突破_翻页.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Func012 implements IFuncOrigin {
4848
name: '突破界面_判断',
4949
operator: [{ desc: thisOperator[0].desc }]
5050
})) {
51-
thisScript.regionBezierSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [800, 1600], 0, 200);
51+
thisScript.regionBezierSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [800, 1600], 200);
5252
if (!thisScript.global.tp_swipe_times) {
5353
thisScript.global.tp_swipe_times = 0;
5454
}

src/common/funcList/014_探索_点击挑战图标.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class Func014 implements IFuncOrigin {
175175
'快': [200, 400],
176176
'中': [500, 700],
177177
'慢': [800, 1200],
178-
}[String(thisconf.swipeSpeed) || '慢'], 0, 200);
178+
}[String(thisconf.swipeSpeed) || '慢'], 200);
179179
sleep(500);
180180
thisScript.keepScreen(true);
181181
} else {

src/common/funcList/016_地鬼_热门收藏挑战.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class Func016 implements IFuncOrigin {
196196
point.x + thisOperator[0].oper[5][2],
197197
point.y + thisOperator[0].oper[5][3],
198198
];
199-
thisScript.regionSwipe(beginRegion, thisOperator[0].oper[6], [100, 300], 0, 200);
199+
thisScript.regionSwipe(beginRegion, thisOperator[0].oper[6], [100, 300], 200);
200200
}
201201
thisScript.regionClick([thisOperator[0].oper[7]]);
202202
thisScript.myToast(`地鬼_热门挑战_第${thisScript.global.dgCurNum + 1}次`);

src/common/funcList/017_百鬼夜行.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class Func017 implements IFuncOrigin {
193193
desc: thisOperator[0].desc
194194
}]
195195
})) {
196-
thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 0, 200);
196+
thisScript.regionSwipe(thisOperator[0].oper[0], thisOperator[0].oper[1], [100, 300], 200);
197197
return true;
198198
}
199199
return thisScript.oper({

0 commit comments

Comments
 (0)