assets/js/rangeslider.js in jekyll-theme-glueckkanja-1.0 vs assets/js/rangeslider.js in jekyll-theme-glueckkanja-1.0.1
- old
+ new
@@ -1,6 +1,6 @@
-/*! rangeslider.js - v2.3.0 | (c) 2016 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
+/*! rangeslider.js - v2.3.2 | (c) 2018 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
@@ -315,10 +315,14 @@
this.setPosition(this.position, triggerSlide);
};
Plugin.prototype.handleDown = function(e) {
e.preventDefault();
+
+ // Only respond to mouse main button clicks (usually the left button)
+ if (e.button && e.button !== 0) { return; }
+
this.$document.on(this.moveEvent, this.handleMove);
this.$document.on(this.endEvent, this.handleEnd);
// add active class because Firefox is ignoring
// the handle:active pseudo selector because of `e.preventDefault();`
@@ -489,6 +493,6 @@
});
};
return 'rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);';
-}));
+}));
\ No newline at end of file