Closed Bug 849961 Opened 11 years ago Closed 11 years ago

Make nsWindow::DispatchMultitouchEvent honor event.mFlags.mMultipleActionsPrevented

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 22

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

nsWindow::DispatchMultitouchEvent needs to honor event.mFlags.mMultipleActionsPrevented or else we can't prevent scrolling _and_ still have elements take focus when an element is dragged. E.g. see bug 849552.
Attached patch patchSplinter Review
Attachment #723622 - Flags: review?(bugs)
Comment on attachment 723622 [details] [diff] [review]
patch

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

I think from the android-widget side, this is fine.

::: widget/android/nsWindow.cpp
@@ +1290,5 @@
>      }
>  
>      nsEventStatus status;
>      DispatchEvent(&event, status);
> +    return (status == nsEventStatus_eConsumeNoDefault ||

Lets add a comment explaining that we're using mMultipleActionsPrevented to handle cases where we want to prevent panning, but not prevent focus events.
Attachment #723622 - Flags: review+
Attachment #723622 - Flags: review?(bugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/6e993ef95ad7

(In reply to Wesley Johnston (:wesj) from comment #2)
> Lets add a comment explaining that we're using mMultipleActionsPrevented to
> handle cases where we want to prevent panning, but not prevent focus events.

Comment added.
https://hg.mozilla.org/mozilla-central/rev/6e993ef95ad7
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: