diff --git a/public/src/app.js b/public/src/app.js index 11095a8e1d..2a30f3c867 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -240,5 +240,23 @@ var socket, } } }, false); + + + addTouchEvents(); }); + + + + + function addTouchEvents() { + var el = jQuery("#content"), + width = el.width(); + + el.on('touchmove', function(e) { + //this.style.marginLeft = - parseInt(width - event.touches[0].pageX) + 'px'; + }); + el.on('touchend', function(e) { + this.style.marginLeft = 'auto'; + }) + } }());