fix: remove opacity scroll wheel interaction (#5111)
This commit is contained in:
parent
da94eb1284
commit
aee1e2451e
@ -503,20 +503,6 @@ export const actionChangeOpacity = register({
|
|||||||
max="100"
|
max="100"
|
||||||
step="10"
|
step="10"
|
||||||
onChange={(event) => updateData(+event.target.value)}
|
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={
|
value={
|
||||||
getFormValue(
|
getFormValue(
|
||||||
elements,
|
elements,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user