russoanto Posted July 25, 2018 Share Posted July 25, 2018 Hi, I'm experiencing Pixi.js in a .NET environment. I've build up my own Pixi application then I've tried to load it in a .NET Client through a WebBrowser component. The application is loaded but no mouse event is fired in Pixi. I've excluded the problem is from my Pixi application by pointing the webBrowser to the click example at "https://pixijs.io/examples/#/basics/click.js" and no click event is fired on the bunny. NOTE: both windows forms and wpf webbrowser give the same result. Events in the application managed by other libraries such as D3 and jquery give no problems. Can someone help me to figure it out? Thanks in advance Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 25, 2018 Share Posted July 25, 2018 example uses "iframe". Copy&paste it to empty html/js and open it in webview, tell me if it works. Quote Link to comment Share on other sites More sharing options...
bruno_ Posted July 25, 2018 Share Posted July 25, 2018 The webbrowser control in WPF and windows forms is the same as Internet Explorer 8. It won't be easy to use that in html5 games. Quote Link to comment Share on other sites More sharing options...
russoanto Posted July 26, 2018 Author Share Posted July 26, 2018 18 hours ago, ivan.popelyshev said: example uses "iframe". Copy&paste it to empty html/js and open it in webview, tell me if it works. Still not working. 14 hours ago, bruno_ said: The webbrowser control in WPF and windows forms is the same as Internet Explorer 8. It won't be easy to use that in html5 games. It is possible to emulate any IE versions modifying a registry key. In fact I'm able to run html5 but the events problem, only on pixi, remains. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 26, 2018 Share Posted July 26, 2018 Unfortunately, I'm not using WPF, I can only tell you how to debug it. Look here: https://github.com/pixijs/pixi.js/blob/dev/src/interaction/InteractionManager.js Fork pixi, modify that file, or just hack particular methods from outside. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.