vvkungx
vvkungx

Reputation: 119

How to detect touchstart and touchend on knob of ion-range

I use Ionic 2 for develop my app. I want to know method to detect touchstart and touchend on knob of ion-range. I will use that method for show some element when knob is pressing and remove element when knob doesn't press. (It's like iBooks or Google Play Book when you press knob and show title each page) How can I detect it ?

Thank you

Upvotes: 2

Views: 1674

Answers (1)

Paweł C
Paweł C

Reputation: 21

You can use touchstart and touchend events.

<div (touchstart)="touchstart($event)" (touchend)="touchend($event)">

Found the idea here: https://forum.ionicframework.com/t/button-hold-event/48034/2

Upvotes: 2

Related Questions