Release Testing Time (#1785)
* Fixed a bug with getting continue point where there was a single volume unread and a later volume with chapters inside it, the chapters were being picked. * Fixed a bug where resuming from jump key wasn't working (develop) * Cleaned up the spacing
This commit is contained in:
parent
0de927dee4
commit
bdd2a0a26a
11 changed files with 136 additions and 34 deletions
|
|
@ -9,6 +9,8 @@ const keySize = 25; // Height of the JumpBar button
|
|||
export class JumpbarService {
|
||||
|
||||
resumeKeys: {[key: string]: string} = {};
|
||||
// Used for custom filtered urls
|
||||
resumeScroll: {[key: string]: number} = {};
|
||||
|
||||
constructor() { }
|
||||
|
||||
|
|
@ -18,10 +20,19 @@ export class JumpbarService {
|
|||
return '';
|
||||
}
|
||||
|
||||
getResumePosition(key: string) {
|
||||
if (this.resumeScroll.hasOwnProperty(key)) return this.resumeScroll[key];
|
||||
return 0;
|
||||
}
|
||||
|
||||
saveResumeKey(key: string, value: string) {
|
||||
this.resumeKeys[key] = value;
|
||||
}
|
||||
|
||||
saveScrollOffset(key: string, value: number) {
|
||||
this.resumeScroll[key] = value;
|
||||
}
|
||||
|
||||
generateJumpBar(jumpBarKeys: Array<JumpKey>, currentSize: number) {
|
||||
const fullSize = (jumpBarKeys.length * keySize);
|
||||
if (currentSize >= fullSize) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue