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

react-photostory

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-photostory - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

10

components/Swipe.js

@@ -92,6 +92,10 @@ import React, { Component } from 'react'

const { overScan, children } = this.props
this[`imageRef${currentIndex}`].load()
if (this[`imageRef${currentIndex}`]) {
this[`imageRef${currentIndex}`].load()
}
if (overScan === 1) {
if (currentIndex > 0) this[`imageRef${currentIndex - 1}`].load()
if (currentIndex + 1 < children.length) {
if (currentIndex > 0 && this[`imageRef${currentIndex - 1}`]) {
this[`imageRef${currentIndex - 1}`].load()
}
if ((currentIndex + 1 < children.length) && this[`imageRef${currentIndex + 1}`]) {
this[`imageRef${currentIndex + 1}`].load()

@@ -98,0 +102,0 @@ }

@@ -137,6 +137,10 @@ 'use strict';

this['imageRef' + currentIndex].load();
if (this['imageRef' + currentIndex]) {
this['imageRef' + currentIndex].load();
}
if (overScan === 1) {
if (currentIndex > 0) this['imageRef' + (currentIndex - 1)].load();
if (currentIndex + 1 < children.length) {
if (currentIndex > 0 && this['imageRef' + (currentIndex - 1)]) {
this['imageRef' + (currentIndex - 1)].load();
}
if (currentIndex + 1 < children.length && this['imageRef' + (currentIndex + 1)]) {
this['imageRef' + (currentIndex + 1)].load();

@@ -143,0 +147,0 @@ }

@@ -90,3 +90,3 @@ {

},
"version": "0.7.0"
"version": "0.7.1"
}
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