W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: Mouse Capture for Canvas

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 10 Feb 2011 00:32:17 -0500
Message-ID: <AANLkTikZP=4Whe4gac_cxo3yTsJdSau08fUB-MCfTpMy@mail.gmail.com>
To: robert@ocallahan.org
Cc: Brandon Andrews <warcraftthreeft@sbcglobal.net>, Kenneth Russell <kbr@google.com>, public-webapps@w3.org
On Thu, Feb 10, 2011 at 12:25 AM, Robert O'Callahan <robert@ocallahan.org>wrote:

> On Thu, Feb 10, 2011 at 5:32 PM, Glenn Maynard <glenn@zewt.org> wrote:
>> It applies to non-game uses, too.  For example, a common annoyance with
>> Google Maps is when you're dragging the map and your mouse cursor hits the
>> side of the screen, the map stops moving; you have to release the button and
>> reposition the cursor.  Mouse grabbing would trivially fix this.
> Sure, but this is not a use-case for capturing while the mouse button is
> up.

It's a case for grabbing the mouse when windowed where IE's "capture" API
won't work due to the below, though (which was what I figured you were
referring to).

At least in Windows, it's hard to get deltas without grabbing the mouse.  If
>> the mouse cursor is at the right edge of the screen and the user moves the
>> mouse to the right, Windows doesn't report the motion--the clamping happens
>> too early on.  Games work around this by hiding the mouse cursor and
>> constantly warping the hidden cursor to the center of the screen, which is
>> probably what browsers would do too.
> Hmm, interesting. That might make things nasty indeed.
> 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]

Glenn Maynard
Received on Thursday, 10 February 2011 05:59:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:16 UTC