Tempus35 Posted July 20, 2015 Share Posted July 20, 2015 EDIT: Fixed, it appears I was using 2.4 version of phaser and moved back to 2.3 and it works. Sorry. EDIT: So the debug information on the phone shows that the pointer is active when you click down but isDown is still false. Any idea there? So I have a simple button added to a scene, it works great on the browser etc but when I load it on a mobile browser it will not click anymore. I have turned on the debug settings to see where it detects input and also added console logs to see it it detects anything. It will respond to onInputOver and onInputOut but nothing else. Any help?var btn = this.add.button(100, 100, 'button-start', this.startGame, this);btn.input.useHandCursor = false;btn.anchor.setTo(0, 0);btn.events.onInputOver.add(function(){ console.log('Over');}, this);btn.events.onInputDown.add(function(){ console.log('Down');}, this);btn.events.onInputUp.add(function(){ console.log('Up');}, this);btn.events.onInputOut.add(function(){ console.log('Out');}, this);render: function(){ this.game.debug.pointer(this.game.input.mousePointer); this.game.debug.pointer(this.game.input.pointer1);} Link to comment Share on other sites More sharing options...
Tom Atom Posted July 20, 2015 Share Posted July 20, 2015 Hi, in my opinion onInputOver and onInputOut are events, that are fired when you go with mouse over button. On mobile devices there is not equivalent - it is like if your finger (not touching screen) is over button ... device can not detect it. Link to comment Share on other sites More sharing options...
Tempus35 Posted July 20, 2015 Author Share Posted July 20, 2015 That might be, though when I move me finger over the button after clicking somewhere on the screen, though two events will fire when I enter the sprite of the button and leave it. Link to comment Share on other sites More sharing options...
Recommended Posts