Disable swiping on desktop

This commit is contained in:
Lorenz Hübschle-Schneider 2014-02-23 14:17:59 +00:00
parent 5938bbb436
commit 17cc3c9088
1 changed files with 4 additions and 2 deletions

View File

@ -671,7 +671,9 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Open and close panels while on mobile devices through swiping // Open and close panels while on mobile devices through swiping
$scope.swipeSidebar = function() { $scope.swipeSidebar = function() {
if (document.body.clientWidth < mobile_cutoff) {
$scope.showSidebar = !$scope.showSidebar; $scope.showSidebar = !$scope.showSidebar;
}
}; };
$scope.openNick = function() { $scope.openNick = function() {