mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813640 - Split out the user event handlers into a separate function for clarity. r=jwir3
This commit is contained in:
parent
0f21dd7253
commit
7e89c14768
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user