(e)
| 1103 | }); |
| 1104 | } |
| 1105 | let pointermove = function(e) { |
| 1106 | if (this.gesturing) { return; } |
| 1107 | e.preventDefault(); |
| 1108 | e.stopPropagation(); |
| 1109 | if (dragging) { |
| 1110 | let dx = e.offsetX * get_ratio(e.target) - base_x; |
| 1111 | let dy = e.offsetY * get_ratio(e.target) - base_y; |
| 1112 | callback(dx, dy); |
| 1113 | } |
| 1114 | } |
| 1115 | elem.addEventListener('pointerdown', pointerdown.bind(this)); |
| 1116 | elem.addEventListener('pointermove', pointermove.bind(this), {passive:false}); |
| 1117 | let deleter = function() { |
nothing calls this directly
no outgoing calls
no test coverage detected