# Ion-range onchange event

**URL:** <https://forum.ionicframework.com/t/ion-range-onchange-event/103791>\
**Category:** ionic-v3\
**Created:** [August 31, 2017, 1:38am UTC](https://forum.ionicframework.com/t/ion-range-onchange-event/103791 "2017-08-31T01:38:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neoassyrian](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/neoassyrian/32/105799_2.png) [@neoassyrian](https://forum.ionicframework.com/u/neoassyrian)\
**Post date:** [August 31, 2017, 1:38am UTC](https://forum.ionicframework.com/t/ion-range-onchange-event/103791/1 "2017-08-31T01:38:44Z")

</div>

Hi guys,  
I’m using the ion-range in my music app to display the time elapsed for the audio file. The ion-range gets updated in an interval with the help of Cordova Media plugin (GetElapsedTime).  
So far so good, however, if a user changes the range slider manually, Iw ould like to capture the “onchange” event and use the Cordova Media plugin to (SeekTo) a specific point int he audio file.  
I can’t currently capture that, because the ionChange event is firing everytime the model is being updated through the Cordova Media plugin (GetElapsedTime).

How can I capture the ionChange ONLY when a user changes the slider manually?

---

<div class="post-metadata">

**Author:** ![jpeer](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jpeer](https://forum.ionicframework.com/u/jpeer)\
**Post date:** [January 2, 2018, 3:09pm UTC](https://forum.ionicframework.com/t/ion-range-onchange-event/103791/2 "2018-01-02T15:09:08Z")

</div>

did you figure that out? i have the same issue

---

<div class="post-metadata">

**Author:** ![neoassyrian](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/neoassyrian/32/105799_2.png) [@neoassyrian](https://forum.ionicframework.com/u/neoassyrian)\
**Post date:** [January 3, 2018, 9:53am UTC](https://forum.ionicframework.com/t/ion-range-onchange-event/103791/3 "2018-01-03T09:53:52Z")

</div>

Yes, I used the onblur event  
\<ion-range (ionBlur)=“updateSongPosition($event)” [(ngModel)]=“playingTime”\>

and then you can access the “value” property of the $event

$ev.value

---

<div class="post-metadata">

**Author:** ![jpeer](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jpeer](https://forum.ionicframework.com/u/jpeer)\
**Post date:** [January 3, 2018, 10:08am UTC](https://forum.ionicframework.com/t/ion-range-onchange-event/103791/4 "2018-01-03T10:08:01Z")

</div>

oh cool, thanks!

i had in the meantime added a heuristic (to only react on “large” changes in the range) but yours sounds like the right way to go. regards!
