Skip to content

The play() request was interrupted by a call to pause() #299

Description

@G33kLabs

Hi,

Sometimes, I've got this error when I load the page :

undefined:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().

It's happens randomly and when the message is displayed in console : I can't edit dropdown list and text area.

Here is my call code and it happens just after :

        console.log('INJECT BLOCKLY')
        @blockly = Blockly.inject('blocklyDiv', {
            toolbox: @opts.toolbox
            zoom:
                controls: true,
                wheel: false,
                startScale: 0.7,
                maxScale: 3,
                minScale: 0.3,
                scaleSpeed: 1.2
            grid:
                spacing: 25
                length: 3
                colour: '#ddd'
                snap: true
        })

I've tried to delay inject with a setTimeout, but it doesn't change anything.

For information, I use "page.js" for this UI.

Thanks by advance if you've a solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions