MouseTracker Original Events in Handlers

Bug fixes.  Event handler methods shouldn't be called directly in
theory...
This commit is contained in:
Mark Salsbery 2013-09-06 12:24:19 -07:00
parent 8229a9aba5
commit 2e1f71a824
2 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ $.ButtonGroup.prototype = {
* @name OpenSeadragon.ButtonGroup.prototype.emulateEnter
*/
emulateEnter: function() {
this.tracker.enterHandler();
this.tracker.enterHandler( this.tracker, {} );
},
/**
@ -129,7 +129,7 @@ $.ButtonGroup.prototype = {
* @name OpenSeadragon.ButtonGroup.prototype.emulateExit
*/
emulateExit: function() {
this.tracker.exitHandler();
this.tracker.exitHandler( this.tracker, {} );
}
};

View File

@ -730,7 +730,7 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
THIS[ this.hash ].fullPage = true;
// mouse will be inside container now
$.delegate( this, onContainerEnter )();
$.delegate( this, onContainerEnter )( null, {} );
} else {
@ -789,7 +789,7 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
THIS[ this.hash ].fullPage = false;
// mouse will likely be outside now
$.delegate( this, onContainerExit )();
$.delegate( this, onContainerExit )( null, {} );
}