aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-24 12:53:38 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-24 12:53:38 +0100
commit0946ac2ff95d54bff36dfcacb7a8553070c9b3b9 (patch)
tree53f7435b9d86787638821d56e7218fec660493e2 /view/js/main.js
parent54806f6ee882d1d29a800f31eb42508221e59dc3 (diff)
downloadvolse-hubzilla-0946ac2ff95d54bff36dfcacb7a8553070c9b3b9.tar.gz
volse-hubzilla-0946ac2ff95d54bff36dfcacb7a8553070c9b3b9.tar.bz2
volse-hubzilla-0946ac2ff95d54bff36dfcacb7a8553070c9b3b9.zip
possibly more page jumping fixes
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index d88133b23..fca9d125d 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -769,7 +769,7 @@ function updateConvItems(mode,data) {
mediaPlaying = false;
});
- var bimgs = ((preloadImages) ? false : $(".wall-item-body img").not(function() { return this.complete; }));
+ var bimgs = ((preloadImages) ? false : $(".wall-item-body img, .wall-photo-item img").not(function() { return this.complete; }));
var bimgcount = bimgs.length;
if (bimgcount) {
@@ -999,7 +999,7 @@ function liveUpdate(notify_id) {
$("#profile-jot-text-loading").hide();
// adjust scroll position if new content was added above viewport
- if(update_mode === 'update') {
+ if(update_mode === 'update' && !justifiedGalleryActive) {
$(window).scrollTop($(window).scrollTop() + $("#region_2").height() - orgHeight + contentHeightDiff);
}