Jquery 1.4 with ui 1.8 give wrong value

Jquery 1.4 with ui 1.8 give wrong value

Hello, I don't think this is in the dev bug list or if I'm doing something wrong but here is the problem : When you move the cursor quickly to far right or far left it seems to show the wrong value ... Is there a way to make sure that the slider gives the correct value while sliding ? Sometimes the value is only wrong by a few decemals but sometimes it can be more. Any ideas ? 
 
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <link
  6. href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
  7. rel="stylesheet" type="text/css"/>
  8. <style>
  9. #debug { display:block; width : 200px; height : 100px; position
  10. : fixed; bottom : 0; right : 0;
  11. color : #FFF; background-color : #333; z-index : 999;
  12. text-align : center; }
  13. #debug p { padding-top : 10px; }
  14. #slider { display : block; width : 640px; margin : 10px auto; }
  15. </style>
  16. <script
  17. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  18. <script
  19. src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  20. <script type="text/javascript">
  21. $(document).ready(function(){
  22. $("#slider").slider({
  23. slide: function(event, ui) {
  24. $('#debug').html('<p>'+ $(this).slider('value')
  25. +'</p>');
  26. }, min : 0, max : 36

  27. });
  28. });
  29. </script>
  30. </head>
  31. <body>
  32. <div id="slider"></div>
  33. <div id="debug"></div>
  34. </body>
  35. </html>