Socket
Socket
Sign inDemoInstall

rc-tabs

Package Overview
Dependencies
Maintainers
7
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tabs - npm Package Compare versions

Comparing version 15.1.0 to 15.1.1

6

es/hooks/useTouchMove.js

@@ -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 |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc