mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 586313: Fire an event when panning finishes [r=mfinkle]
This commit is contained in:
parent
51d8a8d965
commit
bcb6bf629a
@ -588,6 +588,12 @@ MouseModule.prototype = {
|
||||
} else {
|
||||
// now we're done, says our secret 3rd argument
|
||||
this._dragger.dragStop(0, 0, this._targetScrollInterface);
|
||||
|
||||
if (dragData.isPan()) {
|
||||
let event = document.createEvent("Events");
|
||||
event.initEvent("PanFinished", true, false);
|
||||
this._browserViewContainer.dispatchEvent(event);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user