Touch event listener for the toolbar buttons
The constructor
Name | Type | Description |
---|---|---|
baseToolbar | BaseToolbar | A reference to the BaseToolbar |
toolbarItemsContainer | ToolbarItemsContainer | A reference to the toolbarItemsContainer object of the BaseToolbar class |
Event listener method
Name | Type | Description |
---|---|---|
touchEvent | Event | The event to handle |
A reference to the BaseToolbar
A reference to the toolbarItemsContainer of the BaseToolbar class
The y position of the touchstart event
A constant with the maximum delta y between the touchstart and touchend events for the event will be considered as a click event