Prevent safari from zooming in on double-tap

Closes https://github.com/ornicar/lila/issues/8857
pull/8985/head
Timothy Armes 2021-05-20 16:22:53 +02:00
parent 4d1d7daeb3
commit 23d99c39e0
4 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,5 @@
.analyse-controls {
@extend %double-tap;
display: flex;
justify-content: space-between;
align-items: stretch;

View File

@ -248,3 +248,8 @@
width: 100%;
height: 100%;
}
%double-tap {
// prevent iPad safari from zooming in on double tap
touch-action: manipulation;
}

View File

@ -1,4 +1,5 @@
.cmn-toggle {
@extend %double-tap;
position: absolute;
margin-left: -99999px;
}

View File

@ -11,7 +11,7 @@
}
#{$rmoves-tag} {
@extend %flex-column;
@extend %flex-column, %double-tap;
.buttons {
@extend %box-shadow;