We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95af02b commit 6a7c3daCopy full SHA for 6a7c3da
newIDE/app/src/UI/CompactSemiControlledNumberField/index.js
@@ -174,10 +174,11 @@ const CompactSemiControlledNumberField = ({
174
}
175
}}
176
onWheel={event => {
177
+ // Going up is negative, going down is positive.
178
if (event.deltaY < 0) {
179
const newValueAsValidFloat = updateAndReturnValueAsFloatIfValid(
180
temporaryValue,
- -1
181
+ 1
182
);
183
if (newValueAsValidFloat === null) return;
184
@@ -187,7 +188,7 @@ const CompactSemiControlledNumberField = ({
187
188
if (event.deltaY > 0) {
189
190
- 1
191
+ -1
192
193
194
0 commit comments