Regions in ZingTouch are areas where all input events including mouse, touch, and pointer events are listened to. They hold any number of gestures you create and attach to elements.

Suppose we wanted to listen to some div with an id 'container' for all touch events.

var containerElement = document.getElementById('container'); var activeRegion = ZingTouch.Region(containerElement);

The region is now created and listening to every browser event inside of it.