title: How do I make a range slider slower?
body: <p>I made a range slider using html/css/js to go with my lua nui. It works great for the most part, but whenever I slide too quickly on the slider, it doesn't perform the function correctly. Whenever I slide my slider to the left, it makes certain values go down and up for the right. If I slide it too crazy, the values all go back to 0, so I figured if I could cap the speed at which the user can slide it, the function would never go wrong. Didn't find any relevant google searches for this, so I'd appreciate any replies. Also, I'm new to sliders so give me a break if this is a really dumb quesion. I'm more familiar with lua.</p>
  <p>the html</p>
  <pre><code>&lt;div class=&quot;slidecontainer&quot; style=&quot;position: fixed;top:13%;left:5%;&quot;&gt;
   &lt;input type=&quot;range&quot; min=&quot;0.0&quot; max=&quot;10.0&quot; value=&quot;5.0&quot; class=&quot;slider&quot; id=&quot;myRange&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>the js</p>
  <pre><code> var slider = document.getElementById(&quot;myRange&quot;);
   slider.oninput = function() {
          if (slider.value &gt;= 0.0 &amp;&amp; slider.value &lt; 1.0) {
              $.post('https://skineditor/changefaceshapemix', JSON.stringify({
                  value: '1-10'
              }));
          } else if (slider.value &gt; 1.0 &amp;&amp; slider.value &lt; 2.1) {
              $.post('https://skineditor/changefaceshapemix', JSON.stringify({
                  value: '11-20'
              }));
  // this keeps on going all the way to 10 (also i know that the string values are different)
  </code></pre>
  <p>how i have it right now is if the slider's value is anywhere between the numbers then it posts back to my lua and does a function</p>
  <p>im not showing the lua because i've verified its not an issue with that code, my function only goes wrong if i slide too quick on the slider</p>