Added RangeTouch, updated Shr lib in demo

This commit is contained in:
Sam Potts
2019-02-19 00:19:25 +11:00
parent df61e5cdd2
commit 153b8dc6bb
22 changed files with 2791 additions and 1409 deletions

4
src/js/controls.js vendored
View File

@ -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;
},