New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 732881 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 732814



Sign in to add a comment

Support receiving input events targeting OffscreenCanvas

Project Member Reported by flackr@chromium.org, Jun 13 2017

Issue description

We should support delivering input events that target a canvas to a worker with the OffscreenCanvas context. They will need a different API from the standard event as we can't support things like accessing the target element. This could be a part of OffscreenCanvas with some API to either add event listeners or read events since the last commit, or we could support posting the InputTimeline we have been thinking about for AnimationWorklet over to the canvas worker.
 

Comment 1 by mustaq@chromium.org, Jul 24 2017

Here is a polyfill now for input events in Worker:
https://github.com/mustaqahmed/web/tree/gh-pages/input-for-worker

I will now add an OffscreenCanvas demo, should be straightforward now.

Comment 2 by mustaq@chromium.org, Jul 25 2017

Here is my demo for OffscreenCanvas, using the same polyfill:
  http://mustaqahmed.github.io/web/input-for-worker/events-in-offscreen-canvas/
This works in Chrome only with --enable-experimental-canvas-features flag.


Comment 3 by xlai@chromium.org, Sep 13 2017

Cc: xlai@chromium.org

Comment 4 by mustaq@chromium.org, May 22 2018

Cc: nzolghadr@chromium.org
Status: Available (was: Assigned)
Marking the bug as available since I won't be able to work on it in a few months.
Cc: -nzolghadr@chromium.org mustaq@chromium.org
Owner: nzolghadr@chromium.org
Status: Assigned (was: Available)
nzolghadr@ is working on this in 2018Q3 onward.
Cc: -junov@chromium.org

Sign in to add a comment