Commit 41f73bd
committed
Always do a HIT_TEST
Bug: 6490959
The issue here is that if the page calls preventDefault on a
touchstart handler WebViewClassic will not do a HIT_TEST as it
doesn't get the ACTION_DOWN. This means that the mouse is in the
wrong position when the click ultimately fires.
This changes it so that WebViewInputDispatcher will always do a
HIT_TEST at the start of a touch stream, which ensures that the
mouse is positioned correctly.
Change-Id: I1aaca7692e2c7aeedeb21fa3592cd4cb3223ea251 parent 2411c33 commit 41f73bd
File tree
3 files changed
+27
-39
lines changed- core/java/android/webkit
3 files changed
+27
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1722 | 1726 | | |
1723 | 1727 | | |
1724 | 1728 | | |
| |||
4339 | 4343 | | |
4340 | 4344 | | |
4341 | 4345 | | |
4342 | | - | |
4343 | | - | |
4344 | | - | |
4345 | | - | |
4346 | 4346 | | |
4347 | 4347 | | |
4348 | 4348 | | |
| |||
5834 | 5834 | | |
5835 | 5835 | | |
5836 | 5836 | | |
5837 | | - | |
5838 | 5837 | | |
5839 | 5838 | | |
5840 | 5839 | | |
| |||
5856 | 5855 | | |
5857 | 5856 | | |
5858 | 5857 | | |
5859 | | - | |
5860 | | - | |
5861 | | - | |
5862 | | - | |
5863 | | - | |
5864 | | - | |
5865 | | - | |
5866 | | - | |
5867 | | - | |
5868 | | - | |
5869 | | - | |
5870 | | - | |
5871 | | - | |
5872 | | - | |
5873 | | - | |
5874 | | - | |
5875 | | - | |
5876 | 5858 | | |
5877 | 5859 | | |
5878 | 5860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
1147 | | - | |
1148 | 1146 | | |
1149 | 1147 | | |
1150 | 1148 | | |
| |||
1648 | 1646 | | |
1649 | 1647 | | |
1650 | 1648 | | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | 1649 | | |
1664 | 1650 | | |
1665 | 1651 | | |
| |||
1788 | 1774 | | |
1789 | 1775 | | |
1790 | 1776 | | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
1791 | 1786 | | |
1792 | 1787 | | |
1793 | 1788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
502 | | - | |
503 | | - | |
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
508 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
509 | 518 | | |
510 | 519 | | |
511 | 520 | | |
| |||
545 | 554 | | |
546 | 555 | | |
547 | 556 | | |
| 557 | + | |
548 | 558 | | |
549 | 559 | | |
550 | 560 | | |
| |||
824 | 834 | | |
825 | 835 | | |
826 | 836 | | |
| 837 | + | |
827 | 838 | | |
828 | 839 | | |
829 | 840 | | |
| |||
0 commit comments