Closed jonlepage closed 11 months ago
You mean you want to change a scale for dragging, right?
In the current spec it's estimated from its initial value or step
option.
https://github.com/cocopon/tweakpane/blob/4f5175b8194dbd8b2e91e7bdcc50cef5f109db59/packages/core/src/common/util.ts#L118-L126
thanks
Wait wait, I'm positive to add an option for changing the scale.
Wait wait, I'm positive to add an option for changing the scale.
ho oups, oki i will try done a monkey patch for my app and keep a eye on your commit 😊
Added keyScale
and pointerScale
option to NumberInputParams
in v4 beta.
pane.addBinding(PARAMS, 'foo', {
keyScale: 10,
pointerScale: 1,
...
});
https://tweakpane.github.io/docs/api/interfaces/NumberInputParams.html
You can try it with npm install tweakpane@beta
or downloading it manually: https://github.com/cocopon/tweakpane/releases/tag/4.0.0-beta.1
hey thank i will give a try maybe this week
Released in v4.0.0.
sup friend, on my side i contrôle mouse frequency update like this for some of my inputs.
did you or can you expose a way to allow user hack mouse speed/frequency ? 1 pixel update is too face for lot of case. can you guide how archive this with your api ? related to this issu, thanks https://github.com/0b5vr/tweakpane-plugin-rotation/issues/1
expected behavior![8uuuj](https://user-images.githubusercontent.com/24865815/216791949-31987316-25fb-4408-b0c6-dddd95a675b9.gif)