jmp909 Posted October 25, 2015 Share Posted October 25, 2015 Hi, I have an issue here... http://phaser.io/sandbox/IbmnIilH/play if you click (not hold) the Phaser sprite, and then move the cursor away from it, the debug says it is still "over", and the cursor is still a hand until you click on the stage somewhere any ideas.. is this a bug, or am i doing something wrong? [update: this line causes it but shouldn't really be affecting it: this.game.input.mouse.onMouseMove = onMouseMove] (what I'm actually trying to achieve is only move the sprite around the circle when the cursor is over it *and* the mouse is down. Drag doesn't help because you can move the cursor away from the sprite and it still counts as dragging it as per this example http://phaser.io/sandbox/hftdIYxX/play) thanksj Link to comment Share on other sites More sharing options...
Skeptron Posted October 26, 2015 Share Posted October 26, 2015 Change this.game.input.mouse.onMouseMove = onMouseMove;Forthis.game.input.mouse.mouseMoveCallback = onMouseMove;Worth noticing, mouseMoveCallback does not appear in the doc (and it's not a property of the Mouse class). Doc : http://phaser.io/docs/2.4.4/Phaser.Mouse.html#membersRelevant code : https://github.com/photonstorm/phaser/blob/v2.4.4/src/input/Mouse.js#L321 chongdashu 1 Link to comment Share on other sites More sharing options...
jmp909 Posted October 26, 2015 Author Share Posted October 26, 2015 it's in the 2.3 docs. maybe it was removed for some reason?http://phaser.io/docs/2.3.0/Phaser.Mouse.html Link to comment Share on other sites More sharing options...
Recommended Posts