diff --git a/UI/Input/Touch/TouchManager.js b/UI/Input/Touch/TouchManager.js index 7afd775..091f14d 100644 --- a/UI/Input/Touch/TouchManager.js +++ b/UI/Input/Touch/TouchManager.js @@ -48,9 +48,10 @@ * @since 1.0.0 * @author Dennis Eichhorn */ - jsOMS.UI.Input.Touch.TouchManager.prototype.add = function () + jsOMS.UI.Input.Touch.TouchManager.prototype.add = function (surface) { - let self = this; + let e = document.getElementById(surface), + self = this; e.addEventListener('touchstart', function (event) {