Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@egstad/detect-scroll

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egstad/detect-scroll - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

docs/app.5cb3694b.js

7

dist/app.c328ef1a.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc