Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-pannable

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pannable - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

2

package.json
{
"name": "react-pannable",
"version": "0.4.3",
"version": "0.4.4",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

@@ -82,13 +82,13 @@ # react-pannable

| Property | Type | DefaultValue | Description |
| :--------------------- | :---------------: | :----------: | :------------------------------------------------------------------------------------------------------------------ |
| children | element,Component | null | Rendered content. Can be a react component class, a render function, or a rendered element.:`(pad: Pad) => element` |
| width | number | 0 | The width of the bounding view. |
| height | number | 0 | The height of the bounding view. |
| contentWidth | number | 0 | The width of the content view. |
| contentHeight | number | 0 | The height of the content view. |
| scrollEnabled | boolean | true | Determines whether scrolling is enabled. |
| pagingEnabled | boolean | false | Determines whether paging is enabled. |
| directionalLockEnabled | boolean | false | Determines whether scrolling is disabled in a particular direction. |
| onScroll | function | () => {} | Callback invoked when the content view scrolls.:`({evt: PadEvent}) => void` |
| Property | Type | DefaultValue | Description |
| :--------------------- | :--------------: | :----------: | :----------------------------------------------------------------------------------------- |
| children | element,function | null | Rendered content. Can be a render function, or a rendered element.:`(pad: Pad) => element` |
| width | number | 0 | The width of the bounding view. |
| height | number | 0 | The height of the bounding view. |
| contentWidth | number | 0 | The width of the content view. |
| contentHeight | number | 0 | The height of the content view. |
| scrollEnabled | boolean | true | Determines whether scrolling is enabled. |
| pagingEnabled | boolean | false | Determines whether paging is enabled. |
| directionalLockEnabled | boolean | false | Determines whether scrolling is disabled in a particular direction. |
| onScroll | function | () => {} | Callback invoked when the content view scrolls.:`({evt: PadEvent}) => void` |

@@ -115,6 +115,7 @@ #### Public Methods

| Property | Type | DefaultValue | Description |
| :------- | :----: | :----------: | :------------------------------------------------------------------------------------ |
| width | number | -1 | The width of the content. If you set `-1`, it fills the width of the bounding view. |
| height | number | -1 | The height of the content. If you set `-1`, it fills the height of the bounding view. |
| Property | Type | DefaultValue | Description |
| :------- | :------: | :----------: | :------------------------------------------------------------------------------------ |
| children | function | () => null | The render function passing computed width and height.:`(size: Size) => element` |
| width | number | -1 | The width of the content. If you set `-1`, it fills the width of the bounding view. |
| height | number | -1 | The height of the content. If you set `-1`, it fills the height of the bounding view. |

@@ -121,0 +122,0 @@ ### GeneralContent

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