]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: removes unnecessary adjusting of value in _setHandlePos
authorVitaliy Filipov <altras@gmail.com>
Wed, 23 Jan 2019 21:18:49 +0000 (23:18 +0200)
committerVitaliy Filipov <altras@gmail.com>
Wed, 23 Jan 2019 21:18:49 +0000 (23:18 +0200)
- for vertical slider

js/foundation.slider.js

index 37756b2ecda4530ae520f4c3704ddacee0cac297..bc340fbbaeadf507aec2bfc93380454842640c2a 100644 (file)
@@ -208,12 +208,6 @@ class Slider extends Plugin {
 
     var isDbl = this.options.doubleSided;
 
-    //this is for single-handled vertical sliders, it adjusts the value to account for the slider being "upside-down"
-    //for click and drag events, it's weird due to the scale(-1, 1) css property
-    if (this.options.vertical && !noInvert) {
-      location = this.options.end - location;
-    }
-
     if (isDbl) { //this block is to prevent 2 handles from crossing eachother. Could/should be improved.
       if (this.handles.index($hndl) === 0) {
         var h2Val = parseFloat(this.$handle2.attr('aria-valuenow'));