Skip to content

interrupting the ball displacement when the cursor go off zone #375

@Darkosphere

Description

@Darkosphere

This will fix the bug that keeps the ball to follow the cursor when going off the container zone.
At this moment you need to reload the page to get rid of this bug.

Just add this :

document.addEventListener('mouseout', function() {
        ball.dispatchEvent(new Event('mouseup'));
});

You may need to adapt document to the container that you use in your example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions