react-free-carousel
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -147,3 +147,3 @@ 'use strict'; | ||
var $children = $container.children(); | ||
var wrapperWidth = this.wrapper.getBoundingClientRect().width; | ||
var wrapperWidth = this.wrapper.clientWidth; | ||
var offsetPage = new Map(); | ||
@@ -155,4 +155,4 @@ var pageOffset = new Map(); | ||
var $tile = (0, _jquery2.default)(tile); | ||
var tileLeft = $tile.position().left; | ||
var tileWidth = $tile.outerWidth(); | ||
var tileLeft = tile.offsetLeft; | ||
var tileWidth = tile.clientWidth; | ||
@@ -159,0 +159,0 @@ if (offsetPage.has(tileLeft)) { |
{ | ||
"name": "react-free-carousel", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Carousel component for free flex-box layout built with React.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -91,3 +91,3 @@ import React from 'react'; | ||
const $children = $container.children(); | ||
const wrapperWidth = this.wrapper.getBoundingClientRect().width; | ||
const wrapperWidth = this.wrapper.clientWidth; | ||
const offsetPage = new Map(); | ||
@@ -99,4 +99,4 @@ const pageOffset = new Map(); | ||
const $tile = $(tile); | ||
const tileLeft = $tile.position().left; | ||
const tileWidth = $tile.outerWidth(); | ||
const tileLeft = tile.offsetLeft; | ||
const tileWidth = tile.clientWidth; | ||
@@ -103,0 +103,0 @@ if (offsetPage.has(tileLeft)) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
842373