зеркало из https://github.com/mozilla/gecko-dev.git
48a5a4c393
This patch prevents the Windows widget code from dispatching the contextmenu event if APZ is handling touch input. Instead, the APZ code processes the raw touch input, and will fire a contextmenu event when the user lifts their finger after a long-press action, in keeping with the Windows platform convention. Doing it this way also allows us to respect web conventions where the web content can prevent the contextmenu event from firing by calling preventDefault on the touchstart event; this was not possible when dispatching the contextmenu event directly from the widget code. This also makes long-pressing on browser chrome components work properly, as it just shifts the point in time that the contextmenu event is fired without changing any of the code that triggers the XUL popup. However, some changes were needed to have the widget code ignore the synthetic mouse events that the Windows platform sends us, because those would otherwise immediately dismiss the contextmenu popup after it appeared. MozReview-Commit-ID: 9HFZLC6xUAi --HG-- extra : rebase_source : aea932d9f95454c585bcdf962d151c946b5c6ec2 |
||
---|---|---|
.. | ||
public | ||
src | ||
test | ||
testutil | ||
util |