Skip to content
4 changes: 4 additions & 0 deletions Messenger/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ - (void)webView:(WebView *)webView didFinishLoadForFrame:(WebFrame *)frame {
"s.backgroundImage='url(%@)';",
kErrorPNGDataURL]];
}

NSScrollView *mainScrollView = webView.mainFrame.frameView.documentView.enclosingScrollView;
[mainScrollView setVerticalScrollElasticity:NSScrollElasticityNone];
[mainScrollView setHorizontalScrollElasticity:NSScrollElasticityNone];
}

-(void)webView:(WebView *)webView didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame {
Expand Down
7 changes: 3 additions & 4 deletions website/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
var mainMenuButton = header.querySelector('div:first-child .uiPopover a[role="button"]')
if (M._lastMainMenuButton !== mainMenuButton) {
M._lastMainMenuButton = mainMenuButton
if (mainMenuButton) {
mainMenuButton.style.visibility = 'hidden'
}
}
return mainMenuButton
},
Expand Down Expand Up @@ -290,7 +287,7 @@
},

focusSearchField: function() {
document.querySelector('input[aria-autocomplete="list"]').focus();
document.querySelector('input[spellcheck="false"]').focus();
},

focusComposer: function() {
Expand Down Expand Up @@ -396,6 +393,8 @@
var css = document.createElement('style');
css.type = 'text/css';
var style = 'body { overflow: hidden; }'
style += 'div[role="banner"] a[role="button"]:first-child { visibility: hidden; }'
style += '@media(max-width: 700px) { div[role="banner"] a[href="/new"] { visibility: hidden; } }'
css.appendChild(document.createTextNode(style));
document.getElementsByTagName('head')[0].appendChild(css);
}
Expand Down