Ionic 2 range touchend event

做~自己de王妃 提交于 2019-12-03 21:17:56

There is also the ionBlur and ionFocus event on the range input you could use.

The ionFocus fires when you are sliding through the range and the ionBlur is fired when you have released the range item

<ion-range (ionBlur)="rangeBlurred($event)" (ionFocus)="rangeFocused($event)">

"debounce" attribute of ion-range would work. "debounce" adds delay to emit the ionChange function from component.

<ion-range debounce="700" (ionChange)="someFunction($event)"></ion-range>

(700 is delay time in milliseconds) 700 works fine in my case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!