Closed Bug 822816 Opened 12 years ago Closed 12 years ago

[AccessFu] Double tapping does not activate things in JellyBean

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

Remove unneeded mouse event listeners, and don't user 'hover' identifier when actual identifier is 0.
Attachment #693606 - Flags: review?(dbolter)
Comment on attachment 693606 [details] [diff] [review]
Fix double tap activation in jellybean.

Review of attachment 693606 [details] [diff] [review]:
-----------------------------------------------------------------

r=me

::: accessible/src/jsat/TouchAdapter.jsm
@@ +122,5 @@
>          for (var i = 0; i < changedTouches.length; i++) {
>            let touch = changedTouches[i];
>            let touchPoint = new TouchPoint(touch, timeStamp, this._dpi);
> +          let identifier = (touch.identifier == undefined) ?
> +            this.HOVER_ID : touch.identifier;

Oh, right because touch.identifier can be valid but falsey (facepalm).
Attachment #693606 - Flags: review?(dbolter) → review+
(In reply to David Bolter [:davidb] from comment #2)
> Comment on attachment 693606 [details] [diff] [review]
> Fix double tap activation in jellybean.
> 
> Review of attachment 693606 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> r=me
> 
> ::: accessible/src/jsat/TouchAdapter.jsm
> @@ +122,5 @@
> >          for (var i = 0; i < changedTouches.length; i++) {
> >            let touch = changedTouches[i];
> >            let touchPoint = new TouchPoint(touch, timeStamp, this._dpi);
> > +          let identifier = (touch.identifier == undefined) ?
> > +            this.HOVER_ID : touch.identifier;
> 
> Oh, right because touch.identifier can be valid but falsey (facepalm).

Yes, falseyness is tricky in js.
https://hg.mozilla.org/mozilla-central/rev/73ce12dc950b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: