Touch event listener on the background
The constructor
Name | Type | Description |
---|---|---|
baseDialog | BaseDialog | A reference to the dialog |
Event listener method
Name | Type | Description |
---|---|---|
touchEvent | Event | The event to handle |
The point on the screen around witch thz zoom is performed
A reference to the dialog
The zoom when the touchstart event is trigered
The distance in pixel betwwen the touches when the touchstart event is trigered
A leaflet LatLng object with the center of the map
A flag set to true when a pan is ongoing
The X screen coordinate of the beginning of the pan
The Y screen coordinate of the beginning of the pan
A flag set to true when a zoom is ongoing
Handle the touchend event
Name | Type | Description |
---|---|---|
touchEvent | Event | The event to handle |
Handle the touchmove event
Name | Type | Description |
---|---|---|
touchEvent | Event | The event to handle |
Handle the touchstart event
Name | Type | Description |
---|---|---|
touchEvent | Event | The event to handle |
Execute the pan when a touchmove or toucheend event occurs after a touchestart event
Name | Type | Description |
---|---|---|
touch | Touch | The touch object to process |
Execute the zoom when a touchmove or toucheend event occurs after a touchestart event
Name | Type | Description |
---|---|---|
targetTouches | TouchList | The touch objects to process |