@egstad/detect-scroll
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -405,2 +405,3 @@ // modules are defined as an array | ||
var atStart = x !== this.x && this.isMinX(); | ||
this.x = x; | ||
@@ -424,3 +425,2 @@ if (scrolling) { | ||
if (this.x) this.dispatch('scrollX'); | ||
this.x = x; | ||
} | ||
@@ -436,2 +436,3 @@ }, { | ||
var atStart = y !== this.y && this.isMinY(); | ||
this.y = y; | ||
@@ -455,3 +456,2 @@ if (scrolling) { | ||
if (this.y) this.dispatch('scrollY'); | ||
this.y = y; | ||
} | ||
@@ -582,2 +582,3 @@ }, { | ||
hori.scrollTo(instanceWindow.y, 0); | ||
console.log(instanceWindow.y); | ||
} // scrollMaxY: () => {}, | ||
@@ -775,3 +776,3 @@ // scrollMinX: () => {}, | ||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; | ||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "58039" + '/'); | ||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "56494" + '/'); | ||
@@ -778,0 +779,0 @@ ws.onmessage = function (event) { |
@@ -220,3 +220,3 @@ // modules are defined as an array | ||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; | ||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "58039" + '/'); | ||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "56494" + '/'); | ||
@@ -223,0 +223,0 @@ ws.onmessage = function (event) { |
@@ -59,2 +59,3 @@ import DetectScroll from '../index.js' | ||
hori.scrollTo(instanceWindow.y, 0) | ||
console.log(instanceWindow.y) | ||
}, | ||
@@ -61,0 +62,0 @@ // scrollMaxY: () => {}, |
@@ -173,2 +173,4 @@ import { getEl } from './src/getElement' | ||
this.x = x | ||
if (scrolling) { | ||
@@ -191,4 +193,2 @@ this.onScrollStart() | ||
if (this.x) this.dispatch('scrollX') | ||
this.x = x | ||
} | ||
@@ -204,2 +204,4 @@ | ||
this.y = y | ||
if (scrolling) { | ||
@@ -222,4 +224,2 @@ this.onScrollStart() | ||
if (this.y) this.dispatch('scrollY') | ||
this.y = y | ||
} | ||
@@ -226,0 +226,0 @@ |
{ | ||
"name": "@egstad/detect-scroll", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A performant and lightweight ES6 module for detecting scroll activity (direction + location) for X and/or Y axis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
2276377
74
2804
9
12