fix withdraw history modal tap
This commit is contained in:
parent
d2cc6a3dd4
commit
f343bab95f
@ -440,6 +440,6 @@
|
||||
<script src="../../common/i18n.js?v=20260602"></script>
|
||||
<script src="../../common/params.js?v=20260604"></script>
|
||||
<script src="../../common/api.js?v=20260604-salary-wallet"></script>
|
||||
<script src="./script.js?v=20260629-contact-required"></script>
|
||||
<script src="./script.js?v=20260701-history-tap"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -881,14 +881,15 @@
|
||||
var last = 0;
|
||||
function run(event) {
|
||||
var now = Date.now();
|
||||
if (now - last < 220) return;
|
||||
last = now;
|
||||
if (event && event.type === 'pointerdown') {
|
||||
event.preventDefault();
|
||||
if (now - last < 220) {
|
||||
if (event) event.preventDefault();
|
||||
return;
|
||||
}
|
||||
last = now;
|
||||
// 只能在 click 阶段变更弹窗状态:WebView 里 pointerdown 先打开遮罩后,同一次触摸生成的 click 会落到新遮罩上,导致详情弹窗刚打开又被关闭。
|
||||
if (event) event.preventDefault();
|
||||
handler(event);
|
||||
}
|
||||
node.addEventListener('pointerdown', run);
|
||||
node.addEventListener('click', run);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user