FIX: Remove iOS trick to prevent scrolling when focusing on input

No longer needed, removing it also fixes blinking when tapping the composer textarea
This commit is contained in:
Penar Musaraj 2020-07-22 11:18:01 -04:00
parent 9fc7bd5797
commit 09eb087f84
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7
1 changed files with 0 additions and 8 deletions

View File

@ -168,14 +168,6 @@ function positioningWorkaround($fixedElement) {
originalScrollTop = window.pageYOffset;
}
const elementRect = _this.getBoundingClientRect();
if (elementRect.top > 100) {
// this tricks iOS safari into assuming input/textarea is at top of the viewport
// via https://stackoverflow.com/questions/38017771/mobile-safari-prevent-scroll-page-when-focus-on-input
_this.style.transform = "translateY(-400px)";
later(() => (_this.style.transform = "none"), 30);
}
let delay = caps.isIpadOS ? 350 : 150;
later(function() {