Comparing version 15.1.0 to 15.1.1
@@ -139,3 +139,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
document.addEventListener('touchend', onProxyTouchEnd, { | ||
passive: false | ||
passive: true | ||
}); | ||
@@ -145,5 +145,7 @@ | ||
ref.current.addEventListener('touchstart', onProxyTouchStart, { | ||
passive: true | ||
}); | ||
ref.current.addEventListener('wheel', onProxyWheel, { | ||
passive: false | ||
}); | ||
ref.current.addEventListener('wheel', onProxyWheel); | ||
return function () { | ||
@@ -150,0 +152,0 @@ document.removeEventListener('touchmove', onProxyTouchMove); |
@@ -149,3 +149,3 @@ "use strict"; | ||
document.addEventListener('touchend', onProxyTouchEnd, { | ||
passive: false | ||
passive: true | ||
}); | ||
@@ -155,5 +155,7 @@ | ||
ref.current.addEventListener('touchstart', onProxyTouchStart, { | ||
passive: true | ||
}); | ||
ref.current.addEventListener('wheel', onProxyWheel, { | ||
passive: false | ||
}); | ||
ref.current.addEventListener('wheel', onProxyWheel); | ||
return function () { | ||
@@ -160,0 +162,0 @@ document.removeEventListener('touchmove', onProxyTouchMove); |
{ | ||
"name": "rc-tabs", | ||
"version": "15.1.0", | ||
"version": "15.1.1", | ||
"description": "tabs ui component for react", | ||
@@ -65,3 +65,3 @@ "keywords": [ | ||
"eslint-plugin-jest": "^28.2.0", | ||
"eslint-plugin-unicorn": "^52.0.0", | ||
"eslint-plugin-unicorn": "^53.0.0", | ||
"fastclick": "~1.0.6", | ||
@@ -68,0 +68,0 @@ "father": "^4.0.0", |
@@ -119,3 +119,3 @@ # rc-tabs | ||
| onTabScroll | ({ direction }) => void | - | called when tab scroll | | ||
| editable | { onEdit(type: 'add' | 'remove', info: { key, event }), showAdd: boolean, removeIcon: ReactNode, addIcon: ReactNode } | - | config tab editable | | ||
| editable | { onEdit(type: 'add' \| 'remove', info: { key, event }), showAdd: boolean, removeIcon: ReactNode, addIcon: ReactNode } | - | config tab editable | | ||
| locale | { dropdownAriaLabel: string, removeAriaLabel: string, addAriaLabel: string } | - | Accessibility locale help text | | ||
@@ -122,0 +122,0 @@ | moreIcon | ReactNode | - | collapse icon | |
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
165621
3975