From f50aa678661ccd1493f13704f73a84996b8d4e5d Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 28 Jul 2023 13:13:19 -0400 Subject: fix slider problem --- fractiform.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fractiform.js') 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', () => { -- cgit v1.2.3