Searched refs:horizontalDiff (Results 1 – 2 of 2) sorted by relevance
4822 int horizontalDiff = stackBounds.left - bounds.left; in fitWithinBounds() local4823 if ((horizontalDiff < 0 && bounds.left >= maxRight) in fitWithinBounds()4824 || (bounds.left + horizontalDiff >= maxRight)) { in fitWithinBounds()4825 horizontalDiff = maxRight - bounds.left; in fitWithinBounds()4827 bounds.left += horizontalDiff; in fitWithinBounds()4828 bounds.right += horizontalDiff; in fitWithinBounds()
2481 float horizontalDiff = horizontal - scrollX; in clampHorizontalPosition() local2486 if (horizontalDiff >= (viewClippedWidth - 1f)) { in clampHorizontalPosition()2489 } else if (Math.abs(horizontalDiff) <= 1f in clampHorizontalPosition()