(detail: GestureDetail)
| 237 | } |
| 238 | |
| 239 | onEnd(detail: GestureDetail) { |
| 240 | this.setActivated(false); |
| 241 | |
| 242 | this.setNextIndex(detail, true); |
| 243 | |
| 244 | detail.event.stopImmediatePropagation(); |
| 245 | |
| 246 | const value = this.value; |
| 247 | if (value !== undefined) { |
| 248 | if (this.valueBeforeGesture !== value) { |
| 249 | this.emitValueChange(); |
| 250 | this.updateSegmentView(); |
| 251 | } |
| 252 | } |
| 253 | this.valueBeforeGesture = undefined; |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Emits an `ionChange` event. |
no test coverage detected