Skip to content

Node.js based forum software built for the modern web

starting: mobile sidebar menu (intending to take the span3 hidden on mobile and turn it into a slidein sidebar)

psychobunny1803595fa227
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';
+ })
+ }
}());