smartphoto
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -440,4 +440,4 @@ 'use strict'; | ||
this.data.scaleSize = 1; | ||
var scrollX = window.scrollX; | ||
var scrollY = window.scrollY; | ||
var scrollX = window.pageXOffset !== undefined ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft; | ||
var scrollY = window.pageYOffset !== undefined ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
var body = document.querySelector('body'); | ||
@@ -528,4 +528,4 @@ if (location.hash) { | ||
value: function _setHashByCurrentIndex() { | ||
var scrollX = window.scrollX; | ||
var scrollY = window.scrollY; | ||
var scrollX = window.pageXOffset !== undefined ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft; | ||
var scrollY = window.pageYOffset !== undefined ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
var items = this.groupItems(); | ||
@@ -532,0 +532,0 @@ var id = items[this.data.currentIndex].id; |
{ | ||
"name": "smartphoto", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "smartphoto", | ||
@@ -5,0 +5,0 @@ "homepage": "http://developer.a-blogcms.jp", |
@@ -389,4 +389,4 @@ import ATemplate from 'a-template'; | ||
this.data.scaleSize = 1; | ||
const scrollX = window.scrollX; | ||
const scrollY = window.scrollY; | ||
const scrollX = (window.pageXOffset !== undefined) ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft; | ||
const scrollY = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
const body = document.querySelector('body'); | ||
@@ -469,4 +469,4 @@ if (location.hash) { | ||
_setHashByCurrentIndex() { | ||
const scrollX = window.scrollX; | ||
const scrollY = window.scrollY; | ||
const scrollX = (window.pageXOffset !== undefined) ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft; | ||
const scrollY = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
const items = this.groupItems(); | ||
@@ -473,0 +473,0 @@ const id = items[this.data.currentIndex].id; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
7513516
12699