Skip to content

Commit ca4da29

Browse files
committed
fix calc
1 parent 5d4406a commit ca4da29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export function isElemVisible(element) {
245245
}
246246

247247
export function isHorizontallyOverflown(el) {
248-
return (el.scrollWidth ?? 0) - (el.clientWidth ?? 0) > 1;
248+
return (el.scrollWidth ?? 0) - (el.clientWidth ?? 0) > 0;
249249
}
250250

251251
export function createElementFromHTML(str) {

0 commit comments

Comments
 (0)