insig Posted November 19, 2018 Share Posted November 19, 2018 Hi, is there a simple way how I can pause InteractionManager so app will be completely freezed? I tried stop shared ticker, but it seems there is no effect on interactions. Thanks Quote Link to comment Share on other sites More sharing options...
jonforum Posted November 19, 2018 Share Posted November 19, 2018 did you add the share tikers to app ? when your create your app, try sharedTicker:true class _app extends PIXI.Application { constructor() { super({ //width: 1920, //height: 1080, //antialias: true, // transparent: false, // resolution: 1, sharedTicker:true, //backgroundColor: 0x303030 // powerPreference: SLI&CrossFire GPU, TODO: study me }); //this.nwjs = this.isNwjs() && this.initNwjs(); //this.nwjs.win.showDevTools() //auto-start devTool chromium // document.body.onresize = () => { this.scaleToWindow() }; }; If it not work for any reason, look in ` $app.renderer.plugins.interaction ` Quote Link to comment Share on other sites More sharing options...
insig Posted November 19, 2018 Author Share Posted November 19, 2018 Yes I did, but it seems InteractionManager have his own ticker and I cant find any reference to pause it. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 19, 2018 Share Posted November 19, 2018 https://github.com/pixijs/pixi.js/blob/dev/src/interaction/InteractionManager.js#L765 removeEvents(). then addEvents() when you want Quote Link to comment Share on other sites More sharing options...
insig Posted November 19, 2018 Author Share Posted November 19, 2018 Thank you sir 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.