xetra11 Posted October 26, 2016 Share Posted October 26, 2016 Hey Guys, I wonder how to access the default initalized InteractionManager? Referring to this thread: There seems to be a InteractionManager already initialized. I have the same problem like the threadstarter in the referred thread. My events are registered two times since I have initalized my own InteractionManager to change the defaultCursorStyle. How can I access the interactionmanager created by PIXI? Quote Link to comment Share on other sites More sharing options...
themoonrat Posted October 27, 2016 Share Posted October 27, 2016 Something like renderer.plugins.interation I believe Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 27, 2016 Author Share Posted October 27, 2016 27 minutes ago, themoonrat said: Something like renderer.plugins.interation I believe thank you! It is the right one. Sadly it is not possible to set the defaultCursorStyle to "crosshair". It actually worked but there was not change to the cursor like when I use the same property value for a InteractionManager instance I defined by myself. Is there some kind of "setup()" function I need to call so the changes will apply? Quote Link to comment Share on other sites More sharing options...
themoonrat Posted October 27, 2016 Share Posted October 27, 2016 I'm sorry, I'm not sure I understand. renderer.plugins.interaction.defaultCursorStyle = 'crosshair'; Changes the cursor to the crosshair by default, which works here and you say works. So far so good! What is it you want to happen from here that isn't happening? Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 27, 2016 Author Share Posted October 27, 2016 9 hours ago, themoonrat said: I'm sorry, I'm not sure I understand. renderer.plugins.interaction.defaultCursorStyle = 'crosshair'; Changes the cursor to the crosshair by default, which works here and you say works. So far so good! What is it you want to happen from here that isn't happening? hey there, It works in regards of not duplicating event bindings. But it does NOT work in regards of rendering the new cursor style. It is still the same. As I debugged the property 'defaultCursorStyle' it said "crosshair" but it just did not rendered the crosshair cursor. I posted the same issue on Stackoverflow in more readable way I think. If you still did not understand what my problem is you can take a look there: http://stackoverflow.com/questions/40279317/change-default-cursor-style-in-pixi-js Thanks for your help so far Charlie Quote Link to comment Share on other sites More sharing options...
xerver Posted October 27, 2016 Share Posted October 27, 2016 If you are setting defaultCursorStyle and it does not change, please open an issue with a reproduction case so we can find the bug. Thanks! https://github.com/pixijs/pixi.js/blob/master/CONTRIBUTING.md#reporting-issues Quote Link to comment Share on other sites More sharing options...
themoonrat Posted October 27, 2016 Share Posted October 27, 2016 For me, the default cursor style DOES change to a crosshair. Tested in Chrome, Firefox, IE11 and Edge. You do have to move the cursor after changing the default style to make the cursor use the new style. But that's the only caveat. I'm on Windows 10. Quote Link to comment Share on other sites More sharing options...
themoonrat Posted October 27, 2016 Share Posted October 27, 2016 PS. If the above 'give it a wiggle after changing the default cursor' doesn't work, could you post a screenshot of what you are seeing as the default cursor? Got a hunch that a screenshot might help with Browser and OS would be useful too! Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 28, 2016 Author Share Posted October 28, 2016 will try it again and then give you sitrep Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 28, 2016 Author Share Posted October 28, 2016 Oh man so awkward. I wrote "defaultCrosshair" instead of "defaultCursorStyle" - because I could only think about the crosshair style....sorry to have bothered you guys!!! Quote Link to comment Share on other sites More sharing options...
themoonrat Posted October 28, 2016 Share Posted October 28, 2016 lol! Man, you must really love crosshairs 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.