Skip to content

Commit 6dd2bef

Browse files
committed
disabled chat screen resize animations when keyboard is displayed on iOS
1 parent 4c6649a commit 6dd2bef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Spixi/Resources/Raw/html/js/chat.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,17 +1790,17 @@ function iosFixer(overshoot = 0) {
17901790
if (newOffset >= updatedOffset) {
17911791
const diff = newOffset - initialOffset;
17921792
requestAnimationFrame(function () {
1793-
wrapEl.style.transition = "top 0.20s ease-out";
1794-
messagesEl.style.transition = "height 0.20s ease-out";
1793+
//wrapEl.style.transition = "top 0.20s ease-out";
1794+
//messagesEl.style.transition = "height 0.20s ease-out";
17951795

17961796
wrapEl.style.top = `${diff + overshoot}px`;
17971797
messagesEl.style.height = `${window.innerHeight - overshoot - 120}px`;
17981798
debouncedScrollToBottom();
17991799
});
18001800
} else if (newOffset < updatedOffset && wrapEl.style.top != "0px") {
18011801
requestAnimationFrame(function () {
1802-
wrapEl.style.transition = "top 0.20s ease-out";
1803-
messagesEl.style.transition = "height 0.20s ease-out";
1802+
//wrapEl.style.transition = "top 0.20s ease-out";
1803+
//messagesEl.style.transition = "height 0.20s ease-out";
18041804

18051805
wrapEl.style.top = "0px";
18061806
messagesEl.style.height = msgHeight;

0 commit comments

Comments
 (0)