@zhenliang/sheet 0.1.72-beta.6 → 0.1.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -306,8 +306,12 @@ var Sheet = function Sheet(props) {
306
306
  // 当前可视区域的宽度
307
307
  var clientWidth = div.clientWidth;
308
308
  setIsScrolledOver(scrollLeft > 0);
309
+ if (scrollWidth === clientWidth) {
310
+ setIsScrolledToEnd(true);
311
+ return;
312
+ }
309
313
  // 判断是否滚动到底
310
- if (scrollLeft + clientWidth >= scrollWidth) {
314
+ if (scrollLeft + clientWidth + 1 >= scrollWidth) {
311
315
  setIsScrolledToEnd(true);
312
316
  } else {
313
317
  setIsScrolledToEnd(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhenliang/sheet",
3
- "version": "0.1.72-beta.6",
3
+ "version": "0.1.73",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",