Bug 586313: Fire an event when panning finishes [r=mfinkle]

This commit is contained in:
Matt Brubeck 2010-08-23 17:30:07 -07:00
parent 51d8a8d965
commit bcb6bf629a

View File

@ -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);
}
}
},