Allow faster mouse movement in number sliders

This commit is contained in:
JannisX11 2020-10-25 17:53:14 +01:00
parent 7ea5deec73
commit 0f235a8c84
2 changed files with 1 additions and 2 deletions

View File

@ -386,7 +386,6 @@ class Keyframe {
},*/
'change_keyframe_file',
'_',
// todo: integrate
'keyframe_interpolation',
{name: 'menu.cube.color', icon: 'color_lens', children: [
{icon: 'bubble_chart', name: 'generic.unset', click: function(kf) {kf.forSelected(kf2 => {kf2.color = -1}, 'change color')}},

View File

@ -465,7 +465,7 @@ class NumSlider extends Widget {
if (drag_event.touches) {
clientX = e.clientX;
} else {
clientX += Math.clamp(e.movementX, -5, 5);
clientX += Math.clamp(e.movementX, -160, 160);
}
scope.slide(clientX, e)
}