framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.14k stars 3.23k forks source link

Need f7-range event that fires on user input ONLY #2194

Closed owen-m1 closed 6 years ago

owen-m1 commented 6 years ago

This is a (multiple allowed):

I created a f7-range element as a scrubber for my music player. I want to set @range:change to fire whenever the user changes the range position in this range slider. However, the event I set for @range:change is fired every millisecond when I update the range position in code (because it needs to go up while the music is playing every millisecond). Is there an event or workaround I could use to get an event that fires only when the user changes the position in an f7-frange element?

nolimits4web commented 6 years ago

In 2.0.8 you can listen for change event on input element inside of range slider, it triggers only when user releases the slider after value has changed. Otherwise you can use some debounce logics with setTimeout

owen-m1 commented 6 years ago

That event doesn't seem to be fired when I move the slider