@monetr/notify 1.0.1 → 1.0.2
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.
- package/dist/notification.js +1 -1
- package/package.json +1 -1
package/dist/notification.js
CHANGED
|
@@ -228,7 +228,7 @@ function Notification(props) {
|
|
|
228
228
|
};
|
|
229
229
|
return null;
|
|
230
230
|
};
|
|
231
|
-
const outcome = ax >= ay ? checkAxis('x', dx, vx)
|
|
231
|
+
const outcome = ax >= ay ? checkAxis('x', dx, vx) : checkAxis('y', dy, vy);
|
|
232
232
|
if (outcome) {
|
|
233
233
|
swipeAxisRef.current = outcome.axis;
|
|
234
234
|
onCloseRef.current?.(null, 'swipe', key);
|