benny! Posted August 25, 2013 Share Posted August 25, 2013 Hi, I just upgraded to the latest Pixi version - and it seems like the following code which worked with Pixi version 1.2 does not work anymore:var stage, renderer;stage = new PIXI.Stage(0x000033, true);renderer = PIXI.autoDetectRenderer(320, 480, myCanvas);stage.mousedown = function() { console.log( "Action" );}; What has changed? Best,benny! Quote Link to comment Share on other sites More sharing options...
xerver Posted August 26, 2013 Share Posted August 26, 2013 Lots of changes to interactions were made in the recent release, please post any bugs on GitHub for tracking please. Thanks! Quote Link to comment Share on other sites More sharing options...
enpu Posted August 26, 2013 Share Posted August 26, 2013 I think it's already posted:https://github.com/GoodBoyDigital/pixi.js/issues/283 The bug seems to be in the hitTest function.On stage hitTest, item.vcount is undefined and the function returns false. Quick fix:if(item.vcount && item.vcount !== PIXI.visibleCount) return false; benny! 1 Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted August 27, 2013 Share Posted August 27, 2013 Sorry about that guys! My bad.. Enpu is spot on. I just updated the code base on githab so should be all good now. Thanks! benny! 1 Quote Link to comment Share on other sites More sharing options...
benny! Posted August 27, 2013 Author Share Posted August 27, 2013 Thanks to both of you, Mat & enpu! 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.