mockaton 10.3.7 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Dashboard.js +8 -1
package/package.json
CHANGED
package/src/Dashboard.js
CHANGED
|
@@ -277,6 +277,12 @@ function GlobalDelayField() {
|
|
|
277
277
|
.then(parseError)
|
|
278
278
|
.catch(onError)
|
|
279
279
|
}
|
|
280
|
+
function onWheel(event) {
|
|
281
|
+
const val = this.valueAsNumber - event.deltaY * 10
|
|
282
|
+
this.valueAsNumber = Math.max(val, 0)
|
|
283
|
+
clearTimeout(onWheel.timer)
|
|
284
|
+
onWheel.timer = setTimeout(onChange.bind(this), 300)
|
|
285
|
+
}
|
|
280
286
|
return (
|
|
281
287
|
r('label', className(CSS.Field, CSS.GlobalDelayField),
|
|
282
288
|
r('span', null, Strings.delay_ms),
|
|
@@ -286,7 +292,8 @@ function GlobalDelayField() {
|
|
|
286
292
|
step: 100,
|
|
287
293
|
autocomplete: 'none',
|
|
288
294
|
value: delay,
|
|
289
|
-
onChange
|
|
295
|
+
onChange,
|
|
296
|
+
onWheel
|
|
290
297
|
})))
|
|
291
298
|
}
|
|
292
299
|
|