Procházet zdrojové kódy

fix: remove opacity scroll wheel interaction (#5111)

Johannes před 3 roky
rodič
revize
aee1e2451e
1 změnil soubory, kde provedl 0 přidání a 14 odebrání
  1. 0 14
      src/actions/actionProperties.tsx

+ 0 - 14
src/actions/actionProperties.tsx

@@ -503,20 +503,6 @@ export const actionChangeOpacity = register({
         max="100"
         step="10"
         onChange={(event) => updateData(+event.target.value)}
-        onWheel={(event) => {
-          event.stopPropagation();
-          const target = event.target as HTMLInputElement;
-          const STEP = 10;
-          const MAX = 100;
-          const MIN = 0;
-          const value = +target.value;
-
-          if (event.deltaY < 0 && value < MAX) {
-            updateData(value + STEP);
-          } else if (event.deltaY > 0 && value > MIN) {
-            updateData(value - STEP);
-          }
-        }}
         value={
           getFormValue(
             elements,