react-pannable
Advanced tools
Comparing version 6.1.8 to 6.1.9
@@ -93,3 +93,3 @@ "use strict"; | ||
}); | ||
}, [direction, fixedWidth, fixedHeight, rowSpacing, columnSpacing, itemWidth, itemHeight, itemCount]); | ||
}, [direction, fixedWidth, fixedHeight, rowSpacing, columnSpacing, insetTop, insetRight, insetBottom, insetLeft, itemWidth, itemHeight, itemCount]); | ||
var prevSizeRef = (0, _react.useRef)(); | ||
@@ -96,0 +96,0 @@ var delegate = { |
@@ -251,2 +251,4 @@ "use strict"; | ||
} else { | ||
var n = 0; | ||
var onMouseMove = function onMouseMove(evt) { | ||
@@ -264,3 +266,8 @@ if (isMoving) { | ||
} else { | ||
end(); | ||
if (n > 0) { | ||
/* 处理鼠标从屏幕外回来的情况 */ | ||
end(); | ||
} else { | ||
n += 1; | ||
} | ||
} | ||
@@ -267,0 +274,0 @@ }; |
@@ -75,3 +75,3 @@ var _excluded = ["itemWidth", "itemHeight", "itemCount", "renderItem", "direction", "rowSpacing", "columnSpacing", "insetTop", "insetRight", "insetBottom", "insetLeft", "width", "height", "render", "children"]; | ||
}); | ||
}, [direction, fixedWidth, fixedHeight, rowSpacing, columnSpacing, itemWidth, itemHeight, itemCount]); | ||
}, [direction, fixedWidth, fixedHeight, rowSpacing, columnSpacing, insetTop, insetRight, insetBottom, insetLeft, itemWidth, itemHeight, itemCount]); | ||
var prevSizeRef = useRef(); | ||
@@ -78,0 +78,0 @@ var delegate = { |
@@ -235,2 +235,4 @@ var _excluded = ["disabled", "shouldStart", "onTrackStart", "onTrackEnd", "onTrackCancel", "onStart", "onMove", "onEnd", "onCancel", "render", "children"]; | ||
} else { | ||
var n = 0; | ||
var onMouseMove = function onMouseMove(evt) { | ||
@@ -248,3 +250,8 @@ if (isMoving) { | ||
} else { | ||
end(); | ||
if (n > 0) { | ||
/* 处理鼠标从屏幕外回来的情况 */ | ||
end(); | ||
} else { | ||
n += 1; | ||
} | ||
} | ||
@@ -251,0 +258,0 @@ }; |
@@ -31,2 +31,6 @@ import PadContext from './PadContext'; | ||
columnSpacing, | ||
insetTop, | ||
insetRight, | ||
insetBottom, | ||
insetLeft, | ||
itemWidth, | ||
@@ -33,0 +37,0 @@ itemHeight, |
@@ -172,2 +172,3 @@ import reducer, { initialPannableState, } from './pannableReducer'; | ||
else { | ||
let n = 0; | ||
const onMouseMove = (evt) => { | ||
@@ -182,3 +183,9 @@ if (isMoving) { | ||
else { | ||
end(); | ||
if (n > 0) { | ||
/* 处理鼠标从屏幕外回来的情况 */ | ||
end(); | ||
} | ||
else { | ||
n += 1; | ||
} | ||
} | ||
@@ -185,0 +192,0 @@ }; |
{ | ||
"name": "react-pannable", | ||
"version": "6.1.8", | ||
"version": "6.1.9", | ||
"description": "Flexible and Customizable Layouts for Scrolling Content with React", | ||
@@ -59,4 +59,3 @@ "keywords": [ | ||
"test": "jest -v", | ||
"prepare": "yarn clean && yarn build", | ||
"prepublishOnly": "cd ../demo && yarn deploy" | ||
"prepare": "yarn clean && yarn build" | ||
}, | ||
@@ -63,0 +62,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
737439
16844