[Webkit-unassigned] [Bug 181954] TouchMove event contains incorrect clientX / clientY after window scroll

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 29 18:11:17 PDT 2019


Toby Zerner <toby.zerner at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |toby.zerner at gmail.com

--- Comment #8 from Toby Zerner <toby.zerner at gmail.com> ---
Would love to see this fixed as there's not really a nice workaround. For now I've got this at the start of my touchmove event handler:

let cancelNextMoveEvent = true;

document.addEventListener('touchmove', function() {
    if (cancelNextMoveEvent) {
        cancelNextMoveEvent = false;
    cancelNextMoveEvent = true;

    // my handler code
}, { passive: false });

This means my handler will only be run on every second touchmove event, which seems to do the trick for the most part - but sometimes I do still get incorrect clientY values.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191030/8cb15b6a/attachment-0001.htm>

More information about the webkit-unassigned mailing list