Open flafrancesca opened 6 years ago
Maybe i have solved my scroll problem:
var canvasTopX = this.game.canvas.getBoundingClientRect().top + document.documentElement.scrollTop;
insted of
var canvasTopX = this.game.canvas.getBoundingClientRect().top + document.body.scrollTop;
It seemed to fix the problem when the input gains focus because I have seen that the instruction document.body.scrollTop returns always 0.
Hi,
i have the same problem of issue #19 . My game is not at top of the page; so, when i click on the input field, the page scroll to top and it is impossible to write on it.
I'm using phaser-input - version 2.0.5 .
Thank you for your support.