mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
starting: mobile sidebar menu (intending to take the span3 hidden on mobile and turn it into a slidein sidebar)
This commit is contained in:
@@ -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';
|
||||
})
|
||||
}
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user