Created
April 3, 2023 17:59
-
-
Save bjoerntx/693a69f5f018c15f7745239febf32a46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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