* calculate the scale factor between two pointersets * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out * @param {Array} start array of pointers * @param {Array} end array of pointers * @return {Number} scale
(start, end)
| 52129 | |
| 52130 | |
| 52131 | function getScale(start, end) { |
| 52132 | return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY); |
| 52133 | } |
| 52134 | |
| 52135 | var MOUSE_INPUT_MAP = { |
| 52136 | mousedown: INPUT_START, |
no test coverage detected