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

nuka-carousel

Package Overview
Dependencies
Maintainers
27
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuka-carousel - npm Package Compare versions

Comparing version 4.8.1 to 4.8.2

14

CHANGELOG.md
# Nuka Changelog
## 4.8.1 (2021-10-22)
- [#804](https://github.com/FormidableLabs/nuka-carousel/pull/804) Fix: flip inequality check in initializeCarouselHeight
- [#805](https://github.com/FormidableLabs/nuka-carousel/pull/805) Fix: prevent initializeCarouselHeight loop to fix browser crash
## 4.8.0 (2021-09-21)
- [#802](https://github.com/FormidableLabs/nuka-carousel/pull/802) Minor A11y improvements
- [#801](https://github.com/FormidableLabs/nuka-carousel/pull/801) Fix lint errors
- [#800](https://github.com/FormidableLabs/nuka-carousel/pull/800) Dep bumps
- [#799](https://github.com/FormidableLabs/nuka-carousel/pull/799) Dep bumps
- [#796](https://github.com/FormidableLabs/nuka-carousel/pull/796) Perf: Use more modern screen-reader only styles
- [#794](https://github.com/FormidableLabs/nuka-carousel/pull/794) Dep bumps
## 4.7.9 (2021-07-13)

@@ -4,0 +18,0 @@

@@ -383,2 +383,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

onTouchStart: function onTouchStart(e) {
//detect pinch zoom
if (e.touches.length === 2) {
_this5.handleMouseOver();
return;
}
_this5.touchObject = {

@@ -396,2 +403,6 @@ startX: e.touches[0].pageX,

onTouchMove: function onTouchMove(e) {
if (e.touches.length === 2) {
return;
}
var direction = swipeDirection(_this5.touchObject.startX, e.touches[0].pageX, _this5.touchObject.startY, e.touches[0].pageY, _this5.props.vertical);

@@ -420,2 +431,8 @@ var length = _this5.props.vertical ? Math.round(Math.sqrt(Math.pow(e.touches[0].pageY - _this5.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.touches[0].pageX - _this5.touchObject.startX, 2)));

onTouchEnd: function onTouchEnd(e) {
if (e.touches.length === 2) {
_this5.handleMouseOut();
return;
}
_this5.handleSwipe(e);

@@ -422,0 +439,0 @@

@@ -425,2 +425,9 @@ "use strict";

onTouchStart: function onTouchStart(e) {
//detect pinch zoom
if (e.touches.length === 2) {
_this5.handleMouseOver();
return;
}
_this5.touchObject = {

@@ -438,2 +445,6 @@ startX: e.touches[0].pageX,

onTouchMove: function onTouchMove(e) {
if (e.touches.length === 2) {
return;
}
var direction = (0, _utilities.swipeDirection)(_this5.touchObject.startX, e.touches[0].pageX, _this5.touchObject.startY, e.touches[0].pageY, _this5.props.vertical);

@@ -462,2 +473,8 @@ var length = _this5.props.vertical ? Math.round(Math.sqrt(Math.pow(e.touches[0].pageY - _this5.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.touches[0].pageX - _this5.touchObject.startX, 2)));

onTouchEnd: function onTouchEnd(e) {
if (e.touches.length === 2) {
_this5.handleMouseOut();
return;
}
_this5.handleSwipe(e);

@@ -464,0 +481,0 @@

8

package.json
{
"name": "nuka-carousel",
"version": "4.8.1",
"version": "4.8.2",
"description": "Pure React Carousel",

@@ -49,5 +49,5 @@ "main": "index.js",

"url-loader": "^4.1.1",
"webpack": "4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"webpack": "5.61.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.4.0"
},

@@ -54,0 +54,0 @@ "peerDependencies": {

@@ -55,3 +55,3 @@ [![Maintenance Status][maintenance-image]](#maintenance-status)

Or on CodeSandBox: [![Edit silly-rhodes-5pr2i](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/silly-rhodes-5pr2i?fontsize=14&hidenavigation=1&theme=dark)
Or on CodeSandBox: [![Edit silly-rhodes-5pr2i](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/silly-rosalind-6y7f3)

@@ -58,0 +58,0 @@ ### Keyboard Controls

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