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:
parent
9fc7bd5797
commit
09eb087f84
|
@ -168,14 +168,6 @@ function positioningWorkaround($fixedElement) {
|
||||||
originalScrollTop = window.pageYOffset;
|
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;
|
let delay = caps.isIpadOS ? 350 : 150;
|
||||||
|
|
||||||
later(function() {
|
later(function() {
|
||||||
|
|
Loading…
Reference in New Issue