Jacop Posted September 16, 2019 Share Posted September 16, 2019 In a Pixi.js game I want to simulate a mouse click on canvas. I found this code: https://jsfiddle.net/mwLwkebo/4/ here this event is in a closure but I want to trigger this from outside. If this is possible can you help me to figure out how can I do this from browser console? Quote Link to comment Share on other sites More sharing options...
haoj Posted September 16, 2019 Share Posted September 16, 2019 Maybe in chrome. you can use $ ('...').dispatchEvent on console. https://developers.google.com/web/tools/chrome-devtools/console/utilities 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.