mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Fix for #1085 - goToPage : event sent before updating the index
This commit is contained in:
parent
557ff005a2
commit
1a6aac578b
@ -1842,8 +1842,6 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
* @property {Number} page - The page index.
|
* @property {Number} page - The page index.
|
||||||
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||||
*/
|
*/
|
||||||
this.raiseEvent( 'page', { page: page } );
|
|
||||||
|
|
||||||
this._sequenceIndex = page;
|
this._sequenceIndex = page;
|
||||||
|
|
||||||
this._updateSequenceButtons( page );
|
this._updateSequenceButtons( page );
|
||||||
@ -1853,6 +1851,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
if( this.referenceStrip ){
|
if( this.referenceStrip ){
|
||||||
this.referenceStrip.setFocus( page );
|
this.referenceStrip.setFocus( page );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.raiseEvent( 'page', { page: page } );
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
Reference in New Issue
Block a user