victordiaz / PHONK

PHONK is a coding playground for new and old Android devices
https://phonk.app
GNU General Public License v3.0
460 stars 25 forks source link

slider and knob with different behaviour #26

Closed victordiaz closed 4 years ago

victordiaz commented 4 years ago

I think the second should be the default for both view types but is nicer to have the option to change

victordiaz commented 4 years ago

The mode() method can change now the behaviour

var slider = ui.addSlider(0.1, 0.5, 0.8, 0.2).mode('drag').onChange(function (e) {
  console.log(e)
})