Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbaunwall committed Feb 23, 2024
1 parent 5375d3a commit dcaee9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/src/views/DeviceSimulator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {Wheel} from "../hardware/events.ts";
const uiStore = useUIStore();
const handleAngularWheelChange = e => {
console.log('Wheel change', e.target.value);
uiStore.nextHardwareEvent({payload: {kind: 'wheel', source: Wheel.Angular, value: e.target.value}})
const handleAngularWheelChange = (e: InputEvent) => {
const val = Number((e.target as HTMLInputElement).value);
uiStore.nextHardwareEvent({payload: {kind: 'wheel', source: Wheel.Angular, value: val}})
};
</script>

Expand Down

0 comments on commit dcaee9a

Please sign in to comment.