diff options
author | pommicket <pommicket@gmail.com> | 2023-07-28 13:13:19 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-28 13:13:19 -0400 |
commit | f50aa678661ccd1493f13704f73a84996b8d4e5d (patch) | |
tree | 37b6d86447431d9dae206cbf63d61f8a7f1f62f9 /fractiform.js | |
parent | f95743d497a92e6ba2464963ba12b8624baf3b65 (diff) |
fix slider problem
Diffstat (limited to 'fractiform.js')
-rw-r--r-- | fractiform.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fractiform.js b/fractiform.js index ed3d24a..6f721fa 100644 --- a/fractiform.js +++ b/fractiform.js @@ -2,7 +2,7 @@ /* TODO: -- why isn't slider dragging +- make uniforms for each control so they can be updated without recompiling */ let gl; @@ -1188,7 +1188,7 @@ function add_widget(func) { input.type = 'range'; input.min = 0; input.max = 1; - input.step = 'any'; + input.step = 0.001; input.value = 0; if (param['default']) { input.value = param['default']; @@ -1798,8 +1798,8 @@ function startup() { } else { resizing_ui = false; } + e.preventDefault(); } - e.preventDefault(); }); document.getElementById('code-form').addEventListener('submit', () => { |