Format fix

pull/7214/head
tugcekucukoglu 2025-02-06 19:08:30 +03:00
parent 102677e716
commit 013583d9a4
1 changed files with 2 additions and 2 deletions

View File

@ -433,9 +433,9 @@ export default {
const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight, _isCols) => {
if (_currentIndex <= _numT) return 0;
const firstValue = Math.max(0, _isScrollDownOrRight ? (_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) : _currentIndex > _triggerIndex ? _first : _currentIndex - 2 * _numT);
const maxFirst = this.getLast(firstValue, _isCols)
const maxFirst = this.getLast(firstValue, _isCols);
if (firstValue > maxFirst) return maxFirst - _num;
else return firstValue
else return firstValue;
};
const calculateLast = (_currentIndex, _first, _last, _num, _numT, _isCols) => {