bootstrap-slider-rails 9.6.0 → 9.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5f243169d633dd82915c568e48cab67eb8851f1
|
4
|
+
data.tar.gz: 555a8610851458596e14ece0056414ee1824a945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf33150dd82c50e3e84664cc832085a77f99ada4fb94d3977dd89dbfc4bf4720eaf338054e7e2d4b9434f6612d727628cb5ef5f808a3a1262e1f15db9f48390
|
7
|
+
data.tar.gz: 2ec50f159871cae3f206190548965a27d55168a0e1951178e070809ff350f9d9cad407622bb67dabc19a53b49c27c97358ac608e3f37c517dd0f49a1d01e2061
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*! =======================================================
|
2
|
-
VERSION 9.
|
2
|
+
VERSION 9.7.0
|
3
3
|
========================================================= */
|
4
4
|
"use strict";
|
5
5
|
|
@@ -19,7 +19,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
19
19
|
* =========================================================
|
20
20
|
*
|
21
21
|
* bootstrap-slider is released under the MIT License
|
22
|
-
* Copyright (c)
|
22
|
+
* Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
|
23
23
|
*
|
24
24
|
* Permission is hereby granted, free of charge, to any person
|
25
25
|
* obtaining a copy of this software and associated documentation
|
@@ -740,9 +740,21 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
|
740
740
|
this.touchmove = this._touchmove.bind(this);
|
741
741
|
|
742
742
|
if (this.touchCapable) {
|
743
|
+
// Test for passive event support
|
744
|
+
var supportsPassive = false;
|
745
|
+
try {
|
746
|
+
var opts = Object.defineProperty({}, 'passive', {
|
747
|
+
get: function get() {
|
748
|
+
supportsPassive = true;
|
749
|
+
}
|
750
|
+
});
|
751
|
+
window.addEventListener("test", null, opts);
|
752
|
+
} catch (e) {}
|
753
|
+
// Use our detect's results. passive applied if supported, capture will be false either way.
|
754
|
+
var eventOptions = supportsPassive ? { passive: true } : false;
|
743
755
|
// Bind touch handlers
|
744
|
-
this.sliderElem.addEventListener("touchstart", this.touchstart,
|
745
|
-
this.sliderElem.addEventListener("touchmove", this.touchmove,
|
756
|
+
this.sliderElem.addEventListener("touchstart", this.touchstart, eventOptions);
|
757
|
+
this.sliderElem.addEventListener("touchmove", this.touchmove, eventOptions);
|
746
758
|
}
|
747
759
|
this.sliderElem.addEventListener("mousedown", this.mousedown, false);
|
748
760
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*! =======================================================
|
2
|
-
VERSION 9.
|
2
|
+
VERSION 9.7.0
|
3
3
|
========================================================= */
|
4
4
|
/*! =========================================================
|
5
5
|
* bootstrap-slider.js
|
@@ -15,7 +15,7 @@
|
|
15
15
|
* =========================================================
|
16
16
|
*
|
17
17
|
* bootstrap-slider is released under the MIT License
|
18
|
-
* Copyright (c)
|
18
|
+
* Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
|
19
19
|
*
|
20
20
|
* Permission is hereby granted, free of charge, to any person
|
21
21
|
* obtaining a copy of this software and associated documentation
|