aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/client.js8
-rw-r--r--res/css/des.css2
2 files changed, 8 insertions, 2 deletions
diff --git a/res/client.js b/res/client.js
index 318971b..0d19189 100644
--- a/res/client.js
+++ b/res/client.js
@@ -726,7 +726,13 @@ client_Buttons.initChatInput = function(main) {
guestPass.value = "";
}
};
- new client_InputWithHistory(window.document.querySelector("#chatline"),null,50,function(value) {
+ var chatline = window.document.querySelector("#chatline");
+ chatline.onfocus = function(e) {
+ if(client_Utils.isTouch()) {
+ main.scrollChatToEnd();
+ }
+ };
+ new client_InputWithHistory(chatline,null,50,function(value) {
main.send({ type : "Message", message : { clientName : "", text : value}});
return true;
});
diff --git a/res/css/des.css b/res/css/des.css
index 57e4446..70d0cff 100644
--- a/res/css/des.css
+++ b/res/css/des.css
@@ -506,7 +506,7 @@ footer#footer {
background-color: var(--background-chat);
overflow-y: scroll;
position: absolute;
- top: 3rem;
+ top: 4rem;
left: 1rem;
bottom: 1rem;
right: 1rem;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage