Include slider values in Eve command intents

This commit is contained in:
Meta Vens 2026-07-13 01:01:55 +01:00
commit 4ac8945ceb
2 changed files with 8 additions and 0 deletions

View file

@ -1340,6 +1340,10 @@ function renderSlider(props, children, options) {
input.addEventListener("input", () => {
const intent = createEveCommandIntent(stringProp(props.command, "control.slider.input"), {
...props,
action: {
...objectProps(props.action),
value: Number(input.value),
},
value: Number(input.value),
}, options);
void options.commandSink?.(intent, { kind: "control.slider", props });

View file

@ -1570,6 +1570,10 @@ function renderSlider(
input.addEventListener("input", () => {
const intent = createEveCommandIntent(stringProp(props.command, "control.slider.input"), {
...props,
action: {
...objectProps(props.action),
value: Number(input.value),
},
value: Number(input.value),
}, options);
void options.commandSink?.(intent, { kind: "control.slider", props });