feat: bubble shows 1s then auto-hide; +0.5s gap before next tap
This commit is contained in:
@@ -150,7 +150,7 @@ export default {
|
||||
},
|
||||
|
||||
onTap() {
|
||||
// 冷却:动画进行中不重复触发
|
||||
// 冷却:动画/气泡显示期间不重复触发
|
||||
if (this.animLock) return
|
||||
this.animLock = true
|
||||
|
||||
@@ -164,14 +164,17 @@ export default {
|
||||
setTimeout(() => { self.animStep = 0 }, 200) // scaleY 1.00
|
||||
// 回弹时播鸭叫
|
||||
setTimeout(() => { playDuckSound() }, 150)
|
||||
// 冷却结束
|
||||
setTimeout(() => { self.animLock = false }, 600)
|
||||
|
||||
// 轮播趣味/上轮消耗信息
|
||||
const idx = this.bubbleIndex % this.bubblePresets.length
|
||||
this.bubbleIndex += 1
|
||||
this.bubbleText = this.bubblePresets[idx]
|
||||
this.bubbleVisible = true
|
||||
|
||||
// 气泡显示约 1 秒后自动消失
|
||||
setTimeout(() => { self.bubbleVisible = false }, 1000)
|
||||
// 消失后再等 0.5 秒才允许再次点击
|
||||
setTimeout(() => { self.animLock = false }, 1500)
|
||||
},
|
||||
|
||||
selectSession(index) {
|
||||
|
||||
Reference in New Issue
Block a user