Bug 813640 - Split out the user event handlers into a separate function for clarity. r=jwir3

This commit is contained in:
Kartikaya Gupta 2012-11-20 13:32:22 -05:00
parent 0f21dd7253
commit 7e89c14768

View File

@ -3731,9 +3731,12 @@ var BrowserEventHandler = {
// the remaining events are all dependent on the browser content document being the
// same as the browser displayed document. if they are not the same, we should ignore
// the event.
if (!BrowserApp.isBrowserContentDocumentDisplayed())
return;
if (BrowserApp.isBrowserContentDocumentDisplayed()) {
this.handleUserEvent(aTopic, aData);
}
},
handleUserEvent: function(aTopic, aData) {
if (aTopic == "Gesture:Scroll") {
// If we've lost our scrollable element, return. Don't cancel the
// override, as we probably don't want Java to handle panning until the