mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-07 16:47:50 +08:00
Resolve #1406 Smaller increments for HSV sliders
This commit is contained in:
parent
f866f4a5db
commit
15b6f0a9ba
@ -940,9 +940,8 @@ BARS.defineActions(function() {
|
||||
min: 0, max: 360, default: 0, show_bar: true
|
||||
},
|
||||
getInterval(e) {
|
||||
if (e.shiftKey || Pressing.overrides.shift) return 12.5;
|
||||
if (e.ctrlOrCmd || Pressing.overrides.ctrl) return 1;
|
||||
return 4
|
||||
if (e.shiftKey || Pressing.overrides.shift) return 4;
|
||||
return 1
|
||||
},
|
||||
get: function() {
|
||||
return Math.round(ColorPanel.vue._data.hsv.h);
|
||||
@ -961,8 +960,7 @@ BARS.defineActions(function() {
|
||||
},
|
||||
getInterval(e) {
|
||||
if (e.shiftKey || Pressing.overrides.shift) return 10;
|
||||
if (e.ctrlOrCmd || Pressing.overrides.ctrl) return 1;
|
||||
return 2
|
||||
return 1
|
||||
},
|
||||
get: function() {
|
||||
return Math.round(ColorPanel.vue._data.hsv.s);
|
||||
@ -981,8 +979,7 @@ BARS.defineActions(function() {
|
||||
},
|
||||
getInterval(e) {
|
||||
if (e.shiftKey || Pressing.overrides.shift) return 10;
|
||||
if (e.ctrlOrCmd || Pressing.overrides.ctrl) return 1;
|
||||
return 2
|
||||
return 1
|
||||
},
|
||||
get: function() {
|
||||
return Math.round(ColorPanel.vue._data.hsv.v);
|
||||
|
Loading…
Reference in New Issue
Block a user