---
title: "Discussion on \"[TypeScript] 제스처로 대화하기. #6 - 롱 프레스(with. 범위) 편\" | Hashnode"
description: "Discussion on \"[TypeScript] 제스처로 대화하기. #6 - 롱 프레스(with. 범위) 편\". 이번 편은 이전 편으로부터 이어집니다.\n\n거리 계산은 지난 편의 내용으로 쉽게 구현할 수 있습니다. 하지만 한 가지 차이점은 탭의 경우, 이벤트 핸들러에서 처리하기 때문에 쉽게 좌표를 받아올 수 있지만 롱 프레스의 경우에는 그렇지 못하다는 것입니다. 현재 구현에서도 pointerdown의 좌표를 받아올 수 있지만 목적에 부합하지 않습니다. 필요한 것은 타이머가 호출된 시점의 좌표입니다.\n타이머 호출 시점의 좌표를 받아오려면 어떻게 해야 할까요?..."
url: "https://hashnode.com/posts/long-press-gesture-2/670988a3740da98743bdb647"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[TypeScript\] 제스처로 대화하기. #6 - 롱 프레스(with. 범위) 편](https://koranidro.hashnode.dev/long-press-gesture-2?utm_source=hashnode&utm_medium=feed)

이번 편은 이전 편으로부터 이어집니다. 거리 계산은 지난 편의 내용으로 쉽게 구현할 수 있습니다. 하지만 한 가지 차이점은 탭의 경우, 이벤트 핸들러에서 처리하기 때문에 쉽게 좌표를 받아올 수 있지만 롱 프레스의 경우에는 그렇지 못하다는 것입니다. 현재 구현에서도 pointerdown의 좌표를 받아올 수 있지만 목적에 부합하지 않습니다. 필요한 것은 타이머가 호출된 시점의 좌표입니다. 타이머 호출 시점의 좌표를 받아오려면 어떻게 해야 할까요?...

Sep 26, 2024 · 2 min read · koranidro.hashnode.dev  
Updated Oct 20, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#long-press](https://hashnode.com/tag/long-press)
-   [#distance](https://hashnode.com/tag/distance)
-   [#gesture](https://hashnode.com/tag/gesture)
-   [#gesture-detector](https://hashnode.com/tag/gesture-detector)

## Written by

[고라니드로](https://hashnode.com/@koranidro)

@koranidro

  
[View profile](https://hashnode.com/@koranidro)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
