New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-calendar-timeline

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-calendar-timeline - npm Package Compare versions

Comparing version

to
0.15.2

3

lib/lib/utils.js

@@ -112,2 +112,5 @@ 'use strict';

while (element) {
if (!element.offsetParent && element.tagName === 'BODY' && element.scrollLeft === 0 && element.scrollTop === 0) {
element = document.scrollingElement || element;
}
xPosition += element.offsetLeft - (first ? 0 : element.scrollLeft) + element.clientLeft;

@@ -114,0 +117,0 @@ yPosition += element.offsetTop - (first ? 0 : element.scrollTop) + element.clientTop;

2

package.json
{
"name": "react-calendar-timeline",
"version": "0.15.1",
"version": "0.15.2",
"description": "react calendar timeline",

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

@@ -81,2 +81,5 @@ import moment from 'moment'

while (element) {
if (!element.offsetParent && element.tagName === 'BODY' && element.scrollLeft === 0 && element.scrollTop === 0) {
element = document.scrollingElement || element
}
xPosition += (element.offsetLeft - (first ? 0 : element.scrollLeft) + element.clientLeft)

@@ -83,0 +86,0 @@ yPosition += (element.offsetTop - (first ? 0 : element.scrollTop) + element.clientTop)