mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:53:38 +08:00
parent
07e6452759
commit
22f11efad0
|
@ -174,14 +174,12 @@ function positioningWorkaround($fixedElement) {
|
||||||
// this tricks iOS safari into assuming input/textarea is at top of the viewport
|
// 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
|
// via https://stackoverflow.com/questions/38017771/mobile-safari-prevent-scroll-page-when-focus-on-input
|
||||||
_this.style.transform = "translateY(-400px)";
|
_this.style.transform = "translateY(-400px)";
|
||||||
setTimeout(function() {
|
later(() => (_this.style.transform = "none"), 30);
|
||||||
_this.style.transform = "none";
|
|
||||||
}, 30);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let delay = caps.isIpadOS ? 350 : 150;
|
let delay = caps.isIpadOS ? 350 : 150;
|
||||||
|
|
||||||
setTimeout(function() {
|
later(function() {
|
||||||
if (caps.isIpadOS && iOSWithVisualViewport()) {
|
if (caps.isIpadOS && iOSWithVisualViewport()) {
|
||||||
// disable hacks when using a hardware keyboard
|
// disable hacks when using a hardware keyboard
|
||||||
// by default, a hardware keyboard will show the keyboard accessory bar
|
// by default, a hardware keyboard will show the keyboard accessory bar
|
||||||
|
|
Loading…
Reference in New Issue
Block a user