@@ -185,7 +185,13 @@ const Tag = (props: TagProps) => {
185185 e . stopPropagation ( ) ;
186186 console . log ( "ํฐ์น ์์" ) ;
187187 const touch = e . touches [ 0 ] ;
188- setStartPosition ( { x : touch . clientX , y : touch . clientY } ) ;
188+ //setStartPosition({ x: touch.clientX, y: touch.clientY });
189+ // ์ปจํ
์ด๋์ ์ด๊ธฐ ์์น๋ฅผ ๊ฐ์ ธ์ ์์ ์์น์ ๋ฐ์
190+ const container = e . currentTarget . getBoundingClientRect ( ) ;
191+ setStartPosition ( {
192+ x : touch . clientX - container . left ,
193+ y : touch . clientY - container . top ,
194+ } ) ;
189195
190196 e . currentTarget . addEventListener ( "touchmove" , handleTouchMove , {
191197 passive : false ,
@@ -387,25 +393,29 @@ const Box = styled.div<{
387393 background: ${ theme . colors . gray800 } ;
388394 ${ ( props ) => props . theme . fonts . body08 } ;
389395 display: flex;
390- ${ $hasEditIcon &&
391- css `
396+ ${
397+ $hasEditIcon &&
398+ css `
392399 height: 47px;
393400 padding: 9px 18px;
394401 border-radius: 200px;
395402 background: rgba(255, 255, 255, 0.2);
396403 backdrop-filter: blur(2px);
397404 ${ ( props ) => props . theme . fonts . title01 } ;
398405 gap: 4px;
399- ` }
400- ${ $hasName === false &&
401- css `
406+ `
407+ }
408+ ${
409+ $hasName === false &&
410+ css `
402411 padding: 7.5px 13px 7.5px 13px;
403- ` }
412+ `
413+ }
404414 ` }
405415
406416 ${ ( { $tagType, $orbitType } ) =>
407- $tagType === "letter" &&
408- css `
417+ $tagType === "letter" &&
418+ css `
409419 display: block;
410420 max-width: 90px;
411421 padding: ${ $orbitType === "2" ? "10px" : "11px 15px" } ;
0 commit comments