PanResponder api 를 공부하던 중 onPanResponderRelease 와 onPanResponderTerminate 의 차이점에 대해 궁금증이 생겼습니다.
onPanResponderRelease 의 경우에는 터치가 끝났을 때 발생하는 것으로 파악했습니다.
onPanResponderTerminate 의 경우 문서를 파악해보면 다른 컴포넌트가 responder 가 됬을 때라고 명시 되어있습니다만, 어떤 케이스에 다른 컴포넌트가 responder 가 되는지 잘 모르겠습니다. (아래 Sanck Sample 에 예제를 만들어서 콘솔을 찍어봐도 onPanResponderRelease 만 발동하고 onPanResponderTerminate 는 발동하지 않았습니다.
onPanResponderTerminate 이벤트는 언제 발생하나요?
참고한 api 문서: https://reactnative.dev/docs/panresponder.html
질문
질문의 맥락
onPanResponderRelease
와onPanResponderTerminate
의 차이점에 대해 궁금증이 생겼습니다.onPanResponderRelease
의 경우에는 터치가 끝났을 때 발생하는 것으로 파악했습니다.onPanResponderTerminate
의 경우 문서를 파악해보면 다른 컴포넌트가 responder 가 됬을 때라고 명시 되어있습니다만, 어떤 케이스에 다른 컴포넌트가 responder 가 되는지 잘 모르겠습니다. (아래 Sanck Sample 에 예제를 만들어서 콘솔을 찍어봐도onPanResponderRelease
만 발동하고onPanResponderTerminate
는 발동하지 않았습니다.Snack Sample