Skip to content

Commit fcb298d

Browse files
committed
test1
1 parent 5cfc233 commit fcb298d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/js/app/pages/main/chat.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,14 @@ function _bindEvents(){
737737
}
738738
}, 500);
739739
});
740+
// CLOUD-15103 解决 ios 部分手机点击输入框失焦后输入框不能自动收回问题
741+
utils.on(doms.textInput, "blur", function(){
742+
setTimeout(function(){
743+
// document.body.scrollTop = 9999; // 在 iframe 下会有问题
744+
doms.chatWrapper.scrollIntoView(false); // 元素的底端将和其所在滚动区的可视区域的底端对齐
745+
alert("134");
746+
}, 500);
747+
});
740748
}
741749

742750
// 回车发送消息
@@ -775,15 +783,6 @@ function _bindEvents(){
775783
}
776784
}
777785
});
778-
779-
// CLOUD-15103 解决 ios 部分手机点击输入框失焦后输入框不能自动收回问题
780-
utils.on(doms.textInput, "blur", function(){
781-
setTimeout(function(){
782-
// document.body.scrollTop = 9999; // 在 iframe 下会有问题
783-
document.body.scrollIntoView(false); // 元素的底端将和其所在滚动区的可视区域的底端对齐
784-
alert("123");
785-
}, 500);
786-
});
787786
}
788787

789788
function _close(){

0 commit comments

Comments
 (0)