Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

asyncCallback slows down application + fix #141

@ghost

Description

If the asyncCallback is called to fast the timeout is cleared (i think) and the callback is not triggered. To make it async a fix is made with requestAnimationFrame.

            //clearTimeout(timeout);
            //timeout=setTimeout(function() { if ( ft.callback ) { ft.callback(ft, events); } }, 1);
            requestAnimationFrame( function() { if ( ft.callback ) { ft.callback(ft, events); } } );

Could you apply this fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions