react-hook-notification
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -27,3 +27,3 @@ import { useCallback, useState } from 'react'; | ||
const x = useMotionValue(0); | ||
const input = [-250, 0, 250]; | ||
const input = [-280, 0, 280]; | ||
const output = [0, 1, 0]; | ||
@@ -43,4 +43,4 @@ const opacity = useTransform(x, input, output); | ||
const onDragEnd = useCallback((_, info) => { | ||
const maxLeft = info.offset.x < -245; | ||
const maxRight = info.offset.x > 245; | ||
const maxLeft = info.offset.x < -280; | ||
const maxRight = info.offset.x > 280; | ||
if (maxLeft || maxRight) { | ||
@@ -47,0 +47,0 @@ setOnRemovedOnDragEnd(true); |
{ | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package