InfiniteScroll: fix ie11 is not support Number.parseFloat

pull/21651/head
c10342 2022-01-19 19:19:06 +08:00
parent 21f8fcda61
commit 8ff6efb122
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ const handleScroll = function(cb) {
} else {
const heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
const offsetHeight = getOffsetHeight(container);
const borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
const borderBottom = parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
}