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: d8fc17819c55619dcd8bcbc6165e3ffd6158243e
4
- data.tar.gz: 0f999525ad250694cfa44aa6a93984a116a1b494
3
+ metadata.gz: f5f243169d633dd82915c568e48cab67eb8851f1
4
+ data.tar.gz: 555a8610851458596e14ece0056414ee1824a945
5
5
  SHA512:
6
- metadata.gz: fdc81c9d58646bc7168727cb7bd3b406db1ca60a921f9de773d88ec2f680802856a1b7e0e68a000b2aac52e7d4024623a3041c127b2788732747ddd81cf4e918
7
- data.tar.gz: 6a8038a9b6eb3fdf6cc196a622185ab1e3ceabcb2fde4f67ee5c82e0e41e534b27782c4fac33faf43196f090b1b9023ad34952b5132a4ae1b2047088cb4320ea
6
+ metadata.gz: 9cf33150dd82c50e3e84664cc832085a77f99ada4fb94d3977dd89dbfc4bf4720eaf338054e7e2d4b9434f6612d727628cb5ef5f808a3a1262e1f15db9f48390
7
+ data.tar.gz: 2ec50f159871cae3f206190548965a27d55168a0e1951178e070809ff350f9d9cad407622bb67dabc19a53b49c27c97358ac608e3f37c517dd0f49a1d01e2061
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '9.6.0'
3
+ VERSION = '9.7.0'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*! =======================================================
2
- VERSION 9.6.0
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) 2016 Kyle Kemp, Rohit Kalkur, and contributors
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, false);
745
- this.sliderElem.addEventListener("touchmove", this.touchmove, false);
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.6.0
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) 2016 Kyle Kemp, Rohit Kalkur, and contributors
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-slider-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.6.0
4
+ version: 9.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne