Class: CustomGestureEventHandler

CustomGestureEventHandler()

CustomPointerEventHandler 의 이벤트 기반으로 gesture 를 구현

Constructor

new CustomGestureEventHandler()

Members

activated :boolean

핸들러 동작 여부
Type:
  • boolean

bubbles :boolean

custome event config bubbles (이벤트 버블 가능?)
Type:
  • boolean

cancelable :boolean

custome event config cancelable (이벤트 취소 가능?)
Type:
  • boolean

cbCustompointercancel

custompointercancel 이벤트 등록용 화살표 함수

composed :boolean

custome event config composed (셰도루트에서 이벤트가 나갈 수 있는가?)
Type:
  • boolean

debug :boolean

디버그 여부 (개발용)
Type:
  • boolean

doubleTabTimeout :number

doubleTab 발생 조건 < timeout (ms)
Type:
  • number

(nullable) instance :CustomGestureEventHandler

싱글톤 객체
Type:

(nullable) listener :Window|HTMLElement

이벤트 리스너 요소
Type:
  • Window | HTMLElement

longPressTimeout :number

longPress 발생 조건 > timeout (ms)
Type:
  • number

pinchZoomDistanceBetweenDeltaThreshold :number

pinch/zoom 발생 조건 > 이동거리 (px)
Type:
  • number

rotateAngleBetweenDeltaThreshold :number

rotate 발생 조건 > 회전 (rad)
Type:
  • number

swipeDistanceThreshold :number

swipe 발생 조건 > 이동거리 (px)
Type:
  • number

swipeSpeedThreshold :number

swipe 발생 조건 > 가속도 (px/ms)
Type:
  • number

(nullable) tabLastTimeStamp :number

마지막 tab 발생 timeStamp
Type:
  • number

tabTimeout :number

tab 발생 timeout (ms)
Type:
  • number

(nullable) target :Window|HTMLElement

최초 이벤트 발생 요소 (custompointerdown 에서 event.target)
Type:
  • Window | HTMLElement

Methods

addEventListener(listener)

listener 에 addEventListener
Parameters:
Name Type Description
listener Window | HTMLElement
Listens to Events:

cbCustompointerdown(event) → {function}

customointerdown 이벤트 등록용 화살표 함수
Parameters:
Name Type Description
event Event
Returns:
Type
function

cbCustompointermove(event) → {function}

custompointermove 이벤트 등록용 화살표 함수
Parameters:
Name Type Description
event Event
Returns:
Type
function

cbCustompointerup(event) → {function}

custompointerup 이벤트 등록용 화살표 함수
Parameters:
Name Type Description
event Event
Returns:
Type
function

custompointercancel(event)

custompointercancel 이벤트 처리 메소드
Parameters:
Name Type Description
event Event

custompointerdown(event)

customointerdown 이벤트 처리 메소드
Parameters:
Name Type Description
event Event
Listens to Events:

custompointermove(event)

custompointermove 이벤트 처리 메소드
Parameters:
Name Type Description
event Event
Fires:

custompointerup(event)

custompointerup 이벤트 처리 메소드
Parameters:
Name Type Description
event Event
Fires:

detail(event, messagenullable) → {Object}

customevent option.detail 부 생성
Parameters:
Name Type Attributes Description
event Event
message string <nullable>
현재 사용안함
Returns:
Type
Object

options(event, messagenullable) → {Object}

customevent option 부 생성
Parameters:
Name Type Attributes Description
event Event
message string <nullable>
현재 사용안함
Returns:
Type
Object

printDebug()

디버깅용 (개발용)

removeEventListener()

listener 에 removeEventListener

(static) activate()

싱글톤 핸들러 객체 동작 ON

(static) deactivate()

싱글톤 핸들러 객체 동작 OFF

(static) getInstance() → {CustomGestureEventHandler}

싱글톤 핸들러 객체 가져오기
Returns:
Type
CustomGestureEventHandler

Events

doubletab

더블탭 이벤트

longpress

롱 프레스 이벤트

pinch

확대 이벤트

rotate

회전 이벤트

swipedown

스와이프 아래 이벤트

swipeleft

스와이프 왼쪽 이벤트

swiperight

스와이프 오른쪽 이벤트

swipeup

스와이프 위 이벤트

tab

탭 이벤트

zoom

줌 이벤트