Skip to content

Review "click to unlock" approach #254

Open
@lannymcnie

Description

@lannymcnie

Chrome is deprecating the capability to unlock an audio context via touch events.

Currently SoundJS will listen for the first document-level "mousedown" and "touchend" event, and play an empty sound to unlock the WebAudio context on mobile devices.

Recently, the following message appears in the console:

Performing operations that require explicit user interaction on touchstart events is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5649871251963904 for more details.

This document indicates that touch events will no longer be considered user events if they result in a scroll. We may need to reintroduce a better way to unlock audio.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions