1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00

feat(engine): integration rendering and inputs

This commit is contained in:
2022-11-26 04:48:51 +07:00
parent bca8e0aada
commit ae9661f4b1
7 changed files with 155 additions and 58 deletions

View File

@@ -26,6 +26,11 @@ const onChange = (event: Event) => {
value.value = target.valueAsNumber;
emit('change', value.value);
};
const reset = () => {
value.value = defaultValue;
emit('change', value.value);
};
</script>
<template>
@@ -51,7 +56,7 @@ const onChange = (event: Event) => {
class="range__input"
type="range"
@input="onChange"
@dblclick="value = defaultValue"
@click.middle="reset"
/>
<div class="range__border">{{ max }}</div>
</div>