## Externally-triggered interaction

If needed, you can completely override FoamTree's internal event capture layer and substitute it with your own code. One typical use case is when you need to support a non-standard mobile device for which FoamTree's internal event capture does not work very well.

This example shows how to implement a simple custom event triggering layer using Hammer.js.

#### What's in the code?

- Capturing events from FoamTree element using Hammer.js
- Converting event coordinates to element-relative values
- Calling the appropriate interaction trigger methods of FoamTree