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

cute-clever-carousel

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cute-clever-carousel - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

1

lib/index.d.ts

@@ -14,3 +14,2 @@ import { Options } from './Options';

private itemsX;
private isPassiveSupported;
private touchEventListenerOption;

@@ -17,0 +16,0 @@ constructor(element: Element, options: Options);

6

lib/index.js

@@ -33,4 +33,3 @@ "use strict";

}
// passive 非対応ブラウザでカルーセルをスクロールしようとする場合、デフォルトのスクロールを止めないとうまく動かない
if (!_this.isPassiveSupported && _this.touchingInfo.isHorizontalScroll === true) {
if (_this.touchingInfo.isHorizontalScroll) {
event.preventDefault();

@@ -55,4 +54,3 @@ }

this.itemsElement = element.getElementsByClassName(this.options.itemsClassName)[0];
this.isPassiveSupported = isPassiveSupported_1.default();
this.touchEventListenerOption = this.isPassiveSupported ? { passive: true } : false;
this.touchEventListenerOption = isPassiveSupported_1.default() ? { passive: false } : false;
this.reset();

@@ -59,0 +57,0 @@ this.frameElement.addEventListener('touchstart', this.onTouchStart, this.touchEventListenerOption);

{
"name": "cute-clever-carousel",
"version": "0.0.4",
"version": "0.0.5",
"description": "js carousel",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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