react-calendar-timeline
Advanced tools
Comparing version
@@ -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; |
{ | ||
"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) |
306590
0.12%6497
0.09%