r1844 - trunk/ui

r1844 - trunk/ui


Author: paul.bakaus
Date: Wed Jan 28 15:11:15 2009
New Revision: 1844
Modified:
trunk/ui/ui.slider.js
Log:
slider: added better description for workaround for #3726
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js    (original)
+++ trunk/ui/ui.slider.js    Wed Jan 28 15:11:15 2009
@@ -198,7 +198,8 @@
            }
        });
        
-        //workaround for bug #3736
+        // workaround for bug #3736 (if both handles of a range are at 0, the
first is always used as the one with least distance,
+        // and moving it is obviously prevented by preventing negative ranges)
        if(o.range && (this.values(0) + this.values(1)) == 0) {
            closestHandle = $(this.handles[++index]);
        }