FIX: Jumping color sliders
(Still a bit jumpy, but that's thanks to 24 bit color)
This commit is contained in:
@@ -205,10 +205,8 @@ const previousColor = ref(Color(props.colorNumber))
|
||||
|
||||
const updateColor = useDebounceFn(
|
||||
(newColor) => {
|
||||
if (newColor.rgbNumber() !== color.value.rgbNumber()) {
|
||||
previousColor.value = newColor
|
||||
emit('input', newColor.rgbNumber())
|
||||
}
|
||||
previousColor.value = newColor
|
||||
emit('input', newColor.rgbNumber())
|
||||
},
|
||||
20,
|
||||
{ maxWait: 30 }
|
||||
|
||||
Reference in New Issue
Block a user