@egjs/deview-recycle
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -7,3 +7,3 @@ /* | ||
repository: git+https://github.com/NAVER-FEPlatform/deview2019-demo.git | ||
version: 0.1.6 | ||
version: 0.1.7 | ||
*/ | ||
@@ -97,3 +97,3 @@ 'use strict'; | ||
overflow = _a.overflow; | ||
var scrollTop = overflow ? _this.container.scrollTop : document.documentElement.scrollTop; | ||
var scrollTop = overflow ? _this.container.scrollTop : window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; | ||
var relativeScrollTop = scrollTop - _this.containerOffset; // 아무 고려하지 않은채. | ||
@@ -150,3 +150,3 @@ | ||
var overflow = _this.options.overflow; | ||
_this.containerOffset = overflow ? 0 : _this.container.getBoundingClientRect().top + document.documentElement.scrollTop; | ||
_this.containerOffset = overflow ? 0 : _this.container.getBoundingClientRect().top - document.body.getBoundingClientRect().top; | ||
_this.containerHeight = overflow ? _this.container.offsetHeight : window.innerHeight; | ||
@@ -153,0 +153,0 @@ |
@@ -7,3 +7,3 @@ /* | ||
repository: git+https://github.com/NAVER-FEPlatform/deview2019-demo.git | ||
version: 0.1.6 | ||
version: 0.1.7 | ||
*/ | ||
@@ -95,3 +95,3 @@ import Component from '@egjs/component'; | ||
overflow = _a.overflow; | ||
var scrollTop = overflow ? _this.container.scrollTop : document.documentElement.scrollTop; | ||
var scrollTop = overflow ? _this.container.scrollTop : window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; | ||
var relativeScrollTop = scrollTop - _this.containerOffset; // 아무 고려하지 않은채. | ||
@@ -148,3 +148,3 @@ | ||
var overflow = _this.options.overflow; | ||
_this.containerOffset = overflow ? 0 : _this.container.getBoundingClientRect().top + document.documentElement.scrollTop; | ||
_this.containerOffset = overflow ? 0 : _this.container.getBoundingClientRect().top - document.body.getBoundingClientRect().top; | ||
_this.containerHeight = overflow ? _this.container.offsetHeight : window.innerHeight; | ||
@@ -151,0 +151,0 @@ |
{ | ||
"name": "@egjs/deview-recycle", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/recycle.cjs.js", |
@@ -146,3 +146,5 @@ import Component from "@egjs/component"; | ||
} = this.options; | ||
const scrollTop = overflow ? this.container.scrollTop : document.documentElement.scrollTop; | ||
const scrollTop = overflow | ||
? this.container.scrollTop | ||
: window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; | ||
const relativeScrollTop = scrollTop - this.containerOffset; | ||
@@ -203,3 +205,3 @@ | ||
? 0 | ||
: this.container.getBoundingClientRect().top + document.documentElement.scrollTop; | ||
: this.container.getBoundingClientRect().top - document.body.getBoundingClientRect().top; | ||
this.containerHeight = overflow ? this.container.offsetHeight : window.innerHeight; | ||
@@ -206,0 +208,0 @@ this.items.forEach(item => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
204744
1990