Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check a pointer test #5900

Closed
wants to merge 4 commits into from
Closed

Check a pointer test #5900

wants to merge 4 commits into from

Conversation

Farfurix
Copy link
Contributor

@Farfurix Farfurix commented Jan 27, 2021

testcafe-hammerhead version

DevExpress/testcafe-hammerhead#2570

Local example to check events

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="content" style="width: 100px; height: 100px; border: 1px solid red;">
        click me
    </div>
    <div id="log">
    </div>
    <script type="text/javascript">
    var c = document.getElementById('content'),
        l = document.getElementById('log');

    [
        'pointerdown',
        'pointerup',
        'mousedown',
        'mouseup',
        'touchstart',
        'touchend'
    ].forEach(function (event) {
        c.addEventListener(event, function (e) {
            console.log(e);
            l.innerText += e.type + '\n';
        })
    })
    </script>
</body>
</html>

References

https://developer.apple.com/documentation/safari-release-notes/safari-13-release-notes:

Added support for the Pointer Events API enabling consistent access to mouse, trackpad, touch, and Apple Pencil events.

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@Farfurix Farfurix closed this Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In Android Chrome the pointerdown event triggers twice
2 participants