(smooth: boolean)
| 102 | }; |
| 103 | |
| 104 | const removeActivated = (smooth: boolean) => { |
| 105 | removeRipple(); |
| 106 | const active = activatableEle; |
| 107 | if (!active) { |
| 108 | return; |
| 109 | } |
| 110 | const time = CLEAR_STATE_DEFERS - Date.now() + lastActivated; |
| 111 | if (smooth && time > 0 && !isInstant(active)) { |
| 112 | const deferId = setTimeout(() => { |
| 113 | active.classList.remove(ACTIVATED); |
| 114 | clearDefers.delete(active); |
| 115 | }, CLEAR_STATE_DEFERS); |
| 116 | clearDefers.set(active, deferId); |
| 117 | } else { |
| 118 | active.classList.remove(ACTIVATED); |
| 119 | } |
| 120 | }; |
| 121 | |
| 122 | doc.addEventListener('ionGestureCaptured', cancelActive); |
| 123 |
no test coverage detected