This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Enables manual manipulation of an element using | |
Hammer.js multi-touch events to pinch and drag. | |
This script is little more sophisticated than others I was able to find | |
in that it scales around the centre point of the pinch, and constrains | |
the position of the element in both types of operation to keep as much | |
of it inside the container as possible. | |
Prerequisites: Hammer.js, jQuery or jQLite. |