Merge pull request #2488 from ONLYOFFICE/fix/bugfix

Refactoring
This commit is contained in:
Julia Radzhabova
2023-07-13 18:20:28 +03:00
committed by GitHub

View File

@ -80,13 +80,7 @@ define([
$('body').addClass('chrome');
}
var onScroll = function () {
el.scrollTop(0);
setTimeout(function(){
el.one('scroll', onScroll);
}, 100);
};
el.one('scroll', onScroll);
el.on('scroll', function () { el.scrollTop(0); });
var $container = $('#viewport-vbox-layout', el);
var items = $container.find(' > .layout-item');