mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
Proper buffer for page and book modes (m2)
This commit is contained in:
parent
0c63f35de1
commit
fe2aa52caf
@ -1,8 +1,8 @@
|
|||||||
# To Do
|
# To Do
|
||||||
|
|
||||||
* Make sure adjacent pages aren't visible
|
|
||||||
* Thumbs hover and active state (SVG overlay?)
|
* Thumbs hover and active state (SVG overlay?)
|
||||||
* Resize on window resize
|
* Resize on window resize
|
||||||
* When going to thumbs, scroll to the proper part of the page
|
* When going to thumbs, scroll to the proper part of the page
|
||||||
* Show/hide pages?
|
|
||||||
* Support 400+ page collections
|
* Support 400+ page collections
|
||||||
|
* Show/hide pages?
|
||||||
|
* Play with constraints while zooming out on corners/edges?
|
||||||
|
@ -330,11 +330,12 @@
|
|||||||
layoutConfig.sameWidth = true;
|
layoutConfig.sameWidth = true;
|
||||||
} else if (this.mode === 'scroll') {
|
} else if (this.mode === 'scroll') {
|
||||||
layoutConfig.buffer = this.pageBuffer;
|
layoutConfig.buffer = this.pageBuffer;
|
||||||
} else if (this.mode === 'book') {
|
} else if (this.mode === 'book' || this.mode === 'page') {
|
||||||
layoutConfig.book = true;
|
layoutConfig.book = (this.mode === 'book');
|
||||||
layoutConfig.buffer = this.bigBuffer;
|
var height = 1 + (this.pageBuffer * 2);
|
||||||
} else if (this.mode === 'page') {
|
// Note that using window here is approximate, but that's close enough.
|
||||||
layoutConfig.buffer = 2;
|
// We can't use viewer, because it may be stretched for the thumbs view.
|
||||||
|
layoutConfig.buffer = (height * ($(window).width() / $(window).height())) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
var layout = {
|
var layout = {
|
||||||
|
Loading…
Reference in New Issue
Block a user