fix: remove opacity scroll wheel interaction (#5111)

This commit is contained in:
Johannes 2022-04-28 18:10:08 +01:00 committed by GitHub
parent da94eb1284
commit aee1e2451e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,