r1953 - trunk/ui

r1953 - trunk/ui


Author: scott.gonzalez
Date: Sun Feb 1 19:07:54 2009
New Revision: 1953
Modified:
trunk/ui/ui.slider.js
Log:
Slider:
- Fixed #4016: Vertical slider was unusable when the thumb was at the min
value.
- Fixed #3736 for real: Vertical slider was unusable when using a range
and both thumbs were at the min value.
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js    (original)
+++ trunk/ui/ui.slider.js    Sun Feb 1 19:07:54 2009
@@ -196,10 +196,11 @@
                index = i;
            }
        });
-        
-        // workaround for bug #3736 (if both handles of a range are at 0, the
first is always used as the one with least distance,
+
+        // 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) {
+        if(o.range == true && this.values(1) == o.min) {
            closestHandle = $(this.handles[++index]);
        }