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:
Richard Davey 2024-01-12 17:48:05 +00:00 committed by GitHub
commit 8287d44a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)