Add swipe gesture on photo Viewer

This commit is contained in:
2021-11-22 23:21:51 +01:00
parent ac8c49d954
commit ded276b8a0
5 changed files with 131 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ body {
color: #fff;
cursor: default;
overflow-x: hidden;
overscroll-behavior-y: none;
overscroll-behavior: none;
}
*, *:before, *:after {
text-rendering: optimizeLegibility;

View File

@@ -2,6 +2,7 @@
height: 100vh;
display: flex;
align-items: center;
overflow: hidden;
.container {
height: 100%;
@@ -37,6 +38,7 @@
width: 100%;
margin: auto auto 0;
padding-top: 66.66%;
touch-action: none;
.photo {
--opacity: 1;