Skip to content

Commit

Permalink
fix bug in currentNumbers return
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey committed Apr 2, 2024
1 parent 21fd626 commit 4ccd573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions navigator/src/epub/fxl/FXLFramePoolManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,9 @@ export default class FramePoolManager {
}
const spread = this.spreader.currentSpread(this.currentSlide, this.perPage);
return spread.length > 1 ? [
spread[0].properties?.otherProperties["number"],
spread[spread.length-1].properties?.otherProperties["number"]
] : spread[0].properties?.otherProperties["number"];
spread[0].properties?.otherProperties["number"] as number,
spread[spread.length-1].properties?.otherProperties["number"] as number
] : [spread[0].properties?.otherProperties["number"] as number];
}

deselect() {
Expand Down

0 comments on commit 4ccd573

Please sign in to comment.