From: Vitaliy Filipov Date: Wed, 23 Jan 2019 21:18:49 +0000 (+0200) Subject: fix: removes unnecessary adjusting of value in _setHandlePos X-Git-Tag: v6.6.0~3^2~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=685d85787cc3db2d13a96d9602532b5ddf80a2ef;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: removes unnecessary adjusting of value in _setHandlePos - for vertical slider --- diff --git a/js/foundation.slider.js b/js/foundation.slider.js index 37756b2ec..bc340fbba 100644 --- a/js/foundation.slider.js +++ b/js/foundation.slider.js @@ -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'));