New readme file
This commit is contained in:
parent
b8020fb1ff
commit
8b8295d61e
@ -1,9 +0,0 @@
|
|||||||
CHANGES
|
|
||||||
|
|
||||||
* Improved performance by caching:
|
|
||||||
- The albums view is stored in memory when changing from the albums to the individual album/photo view.
|
|
||||||
- When viewing photos, the next picture in the current album is preloaded.
|
|
||||||
|
|
||||||
* Default sort order of albums is changed from new to old.
|
|
||||||
|
|
||||||
* Fixed scroll position when changing from albums to album and vice versa
|
|
5
README
Normal file
5
README
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Experimental fork of Lychee, a photo management system, that features a number of improvements, including:
|
||||||
|
|
||||||
|
* Faster photo browsing thanks to caching.
|
||||||
|
* Default sort order of albums is changed from new to old.
|
||||||
|
* Preserves scroll position when changing from albums to album and vice versa
|
@ -3890,6 +3890,8 @@ view = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
content: {
|
content: {
|
||||||
|
|
||||||
|
scroll_pos: 0,
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
|
|
||||||
@ -3924,6 +3926,12 @@ view = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$("img[data-type!='nonretina']").retina();
|
$("img[data-type!='nonretina']").retina();
|
||||||
|
|
||||||
|
//restore scroll
|
||||||
|
if (view.albums.content.scroll_pos != null) {
|
||||||
|
//$("html, body").setanimate({ scrollTop: view.albums.content.scroll_pos }, "slow");
|
||||||
|
$("html, body").scrollTop(view.albums.content.scroll_pos);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -4022,6 +4030,7 @@ view = {
|
|||||||
|
|
||||||
$("img[data-type!='svg']").retina();
|
$("img[data-type!='svg']").retina();
|
||||||
|
|
||||||
|
view.albums.content.scroll_pos = $(document).scrollTop();
|
||||||
//scroll to top
|
//scroll to top
|
||||||
$("html, body").animate({ scrollTop: 0 }, "slow");
|
$("html, body").animate({ scrollTop: 0 }, "slow");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user