зеркало из https://github.com/mozilla/gecko-dev.git
e321ee77d6
The Android version of TouchDelegate never resets the value of its mDelegateTargeted, which means that once an event is delegated, future events can get delegated as well, regardless of whether the event occurs within the TouchDelegate's bounds. Because of the geometry this is more of an issue with the (future RecyclerView version of) TabsGridLayout, but it can occur on TabsLinearLayout as well where we use a TouchDelegate to increase the hit size of the close button on a tab - once a close button is hit by delegation and the tab is closed, the next time that tab is recycled it will continue to delegate ACTION_UP events to the close button (in which case they're silently dropped) even if the ACTION_DOWN was not in the close button's delegation area. This commit introduces TouchDelegateWithReset, which is simply an override copy of TouchDelegate with one extra block (commented in the new class) to reset mDelegateTargeted on each new gesture received. MozReview-Commit-ID: 5xrPBAdAK6D --HG-- extra : rebase_source : d1b9c7a443b0590c63433ea6855c8a1ae0662455 extra : source : 0c267676cb0824d916f398155b0d5b7dec6f346c |
||
---|---|---|
.. | ||
android | ||
locales |