Re: Mouse Capture for Canvas

On Tue, Feb 8, 2011 at 5:49 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Wed, Feb 9, 2011 at 11:37 AM, Kenneth Russell <kbr@google.com> wrote:
>>
>> This API doesn't handle all of the desired use cases. In particular,
>> to implement Quake-style mouse look (needed for e.g.
>> http://code.google.com/p/quake2-gwt-port/) it needs to work when the
>> mouse button is up, not just down.
>
> How would you satisfy that use-case without enabling abusive behavior by Web
> sites?

Per the proposal posted earlier and at
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9557 :

1. Only enable mouse capture in response to a user gesture (clicking
on the element).
2. Possibly require confirmation from the user to enter mouse capture mode.
3. Present clear UI to indicate how to exit mouse capture mode.

-Ken

> (I think that case would work with our API if the game was full-screen,
> which I expect it normally would be.)
>
> Rob
> --
> "Now the Bereans were of more noble character than the Thessalonians, for
> they received the message with great eagerness and examined the Scriptures
> every day to see if what Paul said was true." [Acts 17:11]
>

Received on Wednesday, 9 February 2011 01:54:44 UTC