Selaa lähdekoodia

Add step for opacity slider (#670)

Instead of freeform, let's only support 10 increments of opacity. Should help keep things consistent
Christopher Chedeau 5 vuotta sitten
vanhempi
commit
68ca63ec14
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/actions/actionProperties.tsx

+ 1 - 0
src/actions/actionProperties.tsx

@@ -218,6 +218,7 @@ export const actionChangeOpacity: Action = {
         type="range"
         type="range"
         min="0"
         min="0"
         max="100"
         max="100"
+        step="10"
         onChange={e => updateData(+e.target.value)}
         onChange={e => updateData(+e.target.value)}
         value={
         value={
           getFormValue(
           getFormValue(