aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-19 00:19:25 +1100
committerSam Potts <sam@potts.es>2019-02-19 00:19:25 +1100
commit153b8dc6bb96fdba8340a523c8828a72a832fcdf (patch)
tree14c60871a970b26e05b6b154a81302f65617f67f /src/js
parentdf61e5cdd20f3bb4eb29a98000be8770690ad018 (diff)
downloadplyr-153b8dc6bb96fdba8340a523c8828a72a832fcdf.tar.lz
plyr-153b8dc6bb96fdba8340a523c8828a72a832fcdf.tar.xz
plyr-153b8dc6bb96fdba8340a523c8828a72a832fcdf.zip
Added RangeTouch, updated Shr lib in demo
Diffstat (limited to 'src/js')
-rw-r--r--src/js/controls.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 953ca293..c09a28c5 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -3,6 +3,7 @@
// TODO: This needs to be split into smaller files and cleaned up
// ==========================================================================
+import RangeTouch from 'rangetouch';
import captions from './captions';
import html5 from './html5';
import support from './support';
@@ -334,6 +335,9 @@ const controls = {
// Set the fill for webkit now
controls.updateRangeFill.call(this, input);
+ // Improve support on touch devices
+ RangeTouch.setup(input);
+
return input;
},