Testing a HTML5 image slider for mobile, using Hammer.js

It works fine on Android, but not on iOS.

Any ideas?

Fiddle can be found here: http://jsfiddle.net/n74L1gg5/

<script>
    var slider = document.getElementById('slider');
            var after = document.getElementById("imgAfter");

            function moveDivisor() { 
                after.style.width = slider.value+"%";
            }               

            var mc = new Hammer(slider);
            mc.on("panleft panright tap press", function(ev) {
                moveDivisor();
            });
        </script>

Related posts

Recent Viewed