MHzarini / ngx-time-duration-picker

A generic time duration picker Angular component (v2+)
2 stars 7 forks source link

Could this support "long press" actions on the incremental adjustments? #6

Closed ZaLiTHkA closed 4 years ago

ZaLiTHkA commented 4 years ago

Greetings, I don't see any mention of this in the docs, nor any other users requesting it.. So either I'm missing something, or I'm barking up the wrong tree here. (:

Just to check, is there any way with ngx-time-duration-picker, to add the ability to "long press" on the up/down increment adjustment buttons? I have a case where the input number range (milliseconds) must be able to be precise to the integer, but can span into the hundreds. (e.g.: 0.47 seconds).

I would like to be able to long-press on the up or down adjustment button, and have the value jump by x every x seconds.. For example, 10 at a time for ms, 10 or 5 for s, 5 for m, etc..

Is what I'm looking for possible with this particular component?

ZaLiTHkA commented 4 years ago

After posting, I had a quick look at the source project package.json, and there's no mention of anything like "Hammer JS", so I'm assuming a change like this might not be a trivial task..

In my specific case, I am interested in this from a hybrid mobile app point of view.. Not sure if that helps at all in answering my query. O.o