Merge pull request #1520 from iamstratos/master

Add touch-action to Messages, Sidebar and User list
This commit is contained in:
Jérémie Astori 2017-09-19 23:53:27 -04:00 committed by GitHub
commit d97b844e29

View File

@ -22,6 +22,7 @@ body {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
touch-action: none;
/** /**
* Disable pull-to-refresh on mobile that conflicts with scrolling the message list. * Disable pull-to-refresh on mobile that conflicts with scrolling the message list.
@ -137,6 +138,7 @@ kbd {
.container { .container {
margin: 80px auto; margin: 80px auto;
max-width: 480px; max-width: 480px;
touch-action: pan-y;
} }
::-moz-placeholder { ::-moz-placeholder {
@ -470,6 +472,7 @@ kbd {
#sidebar .networks { #sidebar .networks {
padding: 20px 30px 0; padding: 20px 30px 0;
touch-action: pan-y;
} }
#sidebar .networks:empty { #sidebar .networks:empty {
@ -479,6 +482,7 @@ kbd {
#sidebar .network, #sidebar .network,
#sidebar .network-placeholder { #sidebar .network-placeholder {
margin-bottom: 30px; margin-bottom: 30px;
touch-action: pan-y;
} }
#sidebar .empty { #sidebar .empty {
@ -894,6 +898,7 @@ kbd {
right: 0; right: 0;
width: 180px; width: 180px;
transition: right 0.4s; transition: right 0.4s;
touch-action: pan-y;
} }
#chat .show-more { #chat .show-more {
@ -922,6 +927,7 @@ kbd {
#chat .messages { #chat .messages {
padding: 10px 0; padding: 10px 0;
touch-action: pan-y;
} }
#chat .msg { #chat .msg {
@ -1285,6 +1291,7 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
position: absolute; position: absolute;
top: 48px; top: 48px;
width: 100%; width: 100%;
touch-action: pan-y;
} }
#chat .names-filtered { #chat .names-filtered {
@ -1559,6 +1566,7 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
-webkit-flex: 1 0 auto; -webkit-flex: 1 0 auto;
flex: 1 0 auto; flex: 1 0 auto;
align-self: center; align-self: center;
touch-action: pan-y;
} }
#form #submit { #form #submit {