anchor.diff:          return url;
       };
       var isDownScrollDetect = function(lastScrollTop, currentScroll){
  -        return currentScroll > lastScrollTop;
  +        return currentScroll > 0 && currentScroll >= lastScrollTop;
       };
   
       var tabheaderUl = $('#tabheaders');
  
positive.code:     var registerScrollHandler = function(){
          var lastScrollTop = 0;
          var isFetchingLines = false;
          $('.ui-tabs-panel').scroll(function(){
              var panel = $(this);
              var filename = filesByIndex[panel.index()];
  
              var currentScroll = panel.scrollTop();
              var isDownScroll = isDownScrollDetect(lastScrollTop, currentScroll);
              if (!isFetchingLines && isDownScroll && (panel[0].scrollTopMax - 20) <= currentScroll){
                  debug('downward scroll, near bottom - so loading next lines.');
                  isFetchingLines = true;
                  var downurl = '<aksess:geturl url="/admin/tools/logreader/logfiles/"/>' + filename + '.action?startline=' + (currentLine + numberOfLinesToFetch);
  
negative.code:             }
  
              lastScrollTop = currentScroll;
          };
          var handler = function (e, elName) {
              debug('onscroll ' + e + ' ' + elName)
          };
          window.onscroll  = scrollhandler;
          window.onwheel  = scrollhandler;
          window.onmousewheel  = scrollhandler;
      };
  
      $('#controlls').submit(function () {
  