Search the Community
Showing results for tags 'event.currnttarget'.
Found 1 result
Passing webGL canvas widget click event to jQuery
dbawel posted a topic in Questions & AnswersHello, I get caught up in the most rediculous problems - which should be simple. I have a GUI element (widget) on a webGL canvas using bGUI, and need to click on the widget (object) and pass that event to the jQuery 'click' event. I've tried and studied every method, but I'm obviously mising something. @Nabroski provided the following code which works fine in my scripts now, but I need to avoid appending (creating) a new button to pass the click event to the jQuery event handler. How might I use any object in the following playground scene to pass the 'click' event or a 'pick' event to pass this to the jQuery event handler if an object in the scene below is clicked, and no button is created to "choose file"? http://www.babylonjs-playground.com/#VNVOU#12 I feel really stupid on this one. So I've tried countless solutions, but nothing but errors on var files = evt.target.files; as I can't manage to pass a 'click' event from my GUI. Not even using: alert(event.currentTarget === this); Thanks, DB