jhnsnc / precision-inputs

A highly customizable, accessible set of framework-agnostic input components for precision controls (knobs, dials, sliders, etc).
MIT License
51 stars 8 forks source link

Implemented more dragModes #21

Open Tsche opened 4 years ago

Tsche commented 4 years ago

Angular and horizontal dragModes are now implemented to close issue https://github.com/jhnsnc/precision-inputs/issues/13 I did not however implement the suggested "translate" dragMode.

dragMode can be configured using dragmode : <angular|horizontal|vertical>

Smoothing for the new angular dragMode can be configured using

smoothing : <bool>
smoothingFactor : <number>
smoothingThreshold : <number>

There are also some minor other changes to make it build with up to date dependencies.