mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Merge pull request #6679 from somechris/touch-move-coordinates-on-scrolled-down-page
Fix `InputManager.onTouchMove` to work on scrolled-down pages
This commit is contained in:
commit
8287d44a04
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ var InputManager = new Class({
|
|||
|
||||
if (pointer.active && pointer.identifier === changedTouch.identifier)
|
||||
{
|
||||
var element = document.elementFromPoint(changedTouch.pageX, changedTouch.pageY);
|
||||
var element = document.elementFromPoint(changedTouch.clientX, changedTouch.clientY);
|
||||
var overCanvas = element === this.canvas;
|
||||
|
||||
if (!this.isOver && overCanvas)
|
||||
|
|
Loading…
Reference in a new issue