fix mouse scrolling partial lines issue