Don't hide the sidebar when "swiping" with the mouse on desktop

This commit is contained in:
Lorenz Hübschle-Schneider 2014-07-23 19:16:48 +01:00
parent 013cc03380
commit fec3c57da3

View file

@ -885,8 +885,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}; };
$scope.hideSidebar = function() { $scope.hideSidebar = function() {
if ($rootScope.isMobileUi()) {
document.getElementById('sidebar').setAttribute('data-state', 'hidden'); document.getElementById('sidebar').setAttribute('data-state', 'hidden');
document.getElementById('content').setAttribute('sidebar-state', 'hidden'); document.getElementById('content').setAttribute('sidebar-state', 'hidden');
}
}; };
$scope.$watch('autoconnect', function() { $scope.$watch('autoconnect', function() {
if ($scope.autoconnect && !$rootScope.connected) { if ($scope.autoconnect && !$rootScope.connected) {