MCPcopy Create free account
hub / github.com/bwasti/mebm / pointermove

Method pointermove

script.js:1105–1114  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected