Skip to content

Commit

Permalink
Issue #1060: Fix scroll behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Nov 2, 2021
1 parent adec23d commit 328773d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/httpd/htdocs/js/Core.Customer.TicketZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Core.Customer.TicketZoom = (function (TargetNS) {
else {
$('#oooArticleList > .oooActive').removeClass('oooActive');
var PrevChild = $('#oooArticleListExpanded > li:nth-child(' + ( ActiveIndex - 1 ) + ')');
while ( ActiveIndex > 2 && ActiveChild.offset().top > $(window).scrollTop() + 240) {
while ( ActiveIndex > 1 + ActivityCount && ActiveChild.offset().top > $(window).scrollTop() + 240) {
ActiveChild = PrevChild;
ActiveIndex--;
PrevChild = $('#oooArticleListExpanded > li:nth-child(' + ( ActiveIndex - 1 ) + ')');
Expand Down

0 comments on commit 328773d

Please sign in to comment.