File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ canvas.addEventListener('mousedown', (event) => {
114
114
handleDragStart ( event . clientX , event . clientY ) ;
115
115
} ) ;
116
116
canvas . addEventListener ( 'touchstart' , ( event ) => {
117
+ console . log ( "Drag with touch!" ) ;
117
118
//assume single touches
118
119
touch = event . changedTouches [ 0 ] ;
119
120
handleDragStart ( touch . clientX , touch . clientY ) ;
Original file line number Diff line number Diff line change 6
6
max-width : 80vw ;
7
7
max-height : 80vh ;
8
8
object-fit : contain;
9
+ touch-action : none;
9
10
}
10
11
11
12
main {
@@ -28,12 +29,20 @@ main{
28
29
# controls {
29
30
margin-left : 10vw ;
30
31
}
32
+
33
+ # imageInput {
34
+ max-width : 15vw ;
35
+ }
31
36
}
32
37
33
38
@media (max-width : 768px ) {
34
39
main {
35
40
flex-direction : column; /* Change to column layout for mobile */
36
41
}
42
+
43
+ # imageInput {
44
+ max-width : 40vw ;
45
+ }
37
46
}
38
47
39
48
You can’t perform that action at this time.
0 commit comments