зеркало из https://github.com/mozilla/gecko-dev.git
Bug 978544 - Ignore events targetting a nsIMozBrowserFrame in BrowserElementPanning.js. r=fabrice
This commit is contained in:
Родитель
612eff89ec
Коммит
a34099f956
|
@ -75,6 +75,12 @@ const ContentPanning = {
|
|||
},
|
||||
|
||||
handleEvent: function cp_handleEvent(evt) {
|
||||
// Ignore events targeting a <iframe mozbrowser> since those will be
|
||||
// handle by the BrowserElementPanning.js instance of it.
|
||||
if (evt.target instanceof Ci.nsIMozBrowserFrame) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (evt.defaultPrevented || evt.multipleActionsPrevented) {
|
||||
// clean up panning state even if touchend/mouseup has been preventDefault.
|
||||
if(evt.type === 'touchend' || evt.type === 'mouseup') {
|
||||
|
|
Загрузка…
Ссылка в новой задаче