Browse Source

Fix issue with clickaway not closing sidebar on mobile

pull/1129/head
jlukic 10 years ago
parent
commit
eff5613d26
2 changed files with 3 additions and 1 deletions
  1. 2
      src/definitions/modules/sidebar.js
  2. 2
      src/themes/packages/default/modules/sidebar.variables

2
src/definitions/modules/sidebar.js

@ -109,6 +109,7 @@ $.fn.sidebar = function(parameters) {
clickaway: function() { clickaway: function() {
$context $context
.on('click' + eventNamespace, module.event.clickaway) .on('click' + eventNamespace, module.event.clickaway)
.on('touchend' + eventNamespace, module.event.clickaway)
; ;
} }
}, },
@ -116,6 +117,7 @@ $.fn.sidebar = function(parameters) {
clickaway: function() { clickaway: function() {
$context $context
.off('click' + eventNamespace) .off('click' + eventNamespace)
.off('touchend' + eventNamespace)
; ;
} }
}, },

2
src/themes/packages/default/modules/sidebar.variables

@ -2,7 +2,7 @@
Sidebar Sidebar
*******************************/ *******************************/
@sidebarWidth: 280px;
@sidebarWidth: 260px;
@sidebarBackground: @black; @sidebarBackground: @black;
@sidebarTransition: transform 0.5s ease; @sidebarTransition: transform 0.5s ease;

Loading…
Cancel
Save