Class BackgroundTouchEL

Touch event listener on the background

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 38

Constructor

new BackgroundTouchEL ( baseDialog )

The constructor

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 227

Parameters

Name Type Description
baseDialog BaseDialog

A reference to the dialog

Public methods

handleEvent ( touchEvent )

Event listener method

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 237

Parameters

Name Type Description
touchEvent Event

The event to handle

Private properties

#aroundPoint : LeafletObject

The point on the screen around witch thz zoom is performed

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 101

#baseDialog : BaseDialog

A reference to the dialog

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 45

#initialZoom : Number

The zoom when the touchstart event is trigered

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 87

#initialZoomDistance : Number

The distance in pixel betwwen the touches when the touchstart event is trigered

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 94

#mapCenter : LeafletObject

A leaflet LatLng object with the center of the map

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 80

#panOngoing : Boolean

A flag set to true when a pan is ongoing

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 52

#startPanX : Number

The X screen coordinate of the beginning of the pan

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 66

#startPanY : Number

The Y screen coordinate of the beginning of the pan

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 73

#zoomOngoing : Boolean

A flag set to true when a zoom is ongoing

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 59

Private methods

#handleEndEvent ( touchEvent )

Handle the touchend event

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 171

Parameters

Name Type Description
touchEvent Event

The event to handle

#handleMoveEvent ( touchEvent )

Handle the touchmove event

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 183

Parameters

Name Type Description
touchEvent Event

The event to handle

#handleStartEvent ( touchEvent )

Handle the touchstart event

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 197

Parameters

Name Type Description
touchEvent Event

The event to handle

#processPan ( touch )

Execute the pan when a touchmove or toucheend event occurs after a touchestart event

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 108

Parameters

Name Type Description
touch Touch

The touch object to process

#processZoom ( targetTouches )

Execute the zoom when a touchmove or toucheend event occurs after a touchestart event

Source : file dialogs/baseDialog/BackgroundTouchEL.js at line 142

Parameters

Name Type Description
targetTouches TouchList

The touch objects to process