From aee1e2451e9d977c822a590c2961ba4aaf2f3e07 Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 28 Apr 2022 18:10:08 +0100 Subject: [PATCH] fix: remove opacity scroll wheel interaction (#5111) --- src/actions/actionProperties.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsx index 53801a22..49efbe45 100644 --- a/src/actions/actionProperties.tsx +++ b/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,