Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 3, 2023 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/693a69f5f018c15f7745239febf32a46 to your computer and use it in GitHub Desktop.
Save bjoerntx/693a69f5f018c15f7745239febf32a46 to your computer and use it in GitHub Desktop.
var _txtViewLoc = { x: 0, y: 0 };
function textViewLocationChangedHandler(e) {
_txtViewLoc = e.location;
}
function window_load() {
TXTextControl.addEventListener("textControlLoaded", function () {
TXTextControl.addEventListener("textViewLocationChanged", textViewLocationChangedHandler);
});
}
window.addEventListener("load", window_load);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment