MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / move

Function move

ServerEditorWeb/ace/ace.js:2285–2288  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2283 var left = rect.left + (parseInt(rect.borderLeftWidth) || 0);
2284 var maxTop = rect.bottom - top - text.clientHeight -2;
2285 var move = function(e) {
2286 text.style.left = e.clientX - left - 2 + "px";
2287 text.style.top = Math.min(e.clientY - top - 2, maxTop) + "px";
2288 };
2289 move(e);
2290
2291 if (e.type != "mousedown")

Callers 1

TextInputFunction · 0.70

Calls 1

minMethod · 0.80

Tested by

no test coverage detected