Include slider values in Eve command intents
This commit is contained in:
parent
5e27a83ff9
commit
4ac8945ceb
2 changed files with 8 additions and 0 deletions
4
packages/eve-browser-lowering/dist/index.js
vendored
4
packages/eve-browser-lowering/dist/index.js
vendored
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue