improved menu sliding

v1.18.x
psychobunny 10 years ago
parent 4b5112e60a
commit 219cd9661f

@ -26,13 +26,20 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
Hammer(document.body).on('swiperight', function(e) {
$('#main-menu').addClass('open');
});
Hammer(document.body).on('swipeleft', function(e) {
$('#main-menu').removeClass('open');
});
Hammer($('#main-menu')[0]).on('swiperight', function(e) {
$('#main-menu').addClass('open');
});
Hammer($('#main-menu')[0]).on('swipeleft', function(e) {
$('#main-menu').removeClass('open');
});
$(window).on('scroll', function() {
$('#main-menu').height($(window).height() + 20);
})

Loading…
Cancel
Save