mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Allow faster mouse movement in number sliders
This commit is contained in:
parent
7ea5deec73
commit
0f235a8c84
@ -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')}},
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user