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

use-scroll-bar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-scroll-bar - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

lib/scrollbar.js

@@ -29,3 +29,2 @@ "use strict";

var handler = function () {
console.log('hanlder function');
var newScrollY = window.scrollY;

@@ -51,8 +50,10 @@ var newScrollX = window.scrollX;

react_1.useEffect(function () {
window.addEventListener('scroll', handler);
return function () {
window.removeEventListener('scroll', handler);
};
if (typeof window !== 'undefined') {
window.addEventListener('scroll', handler);
return function () {
window.removeEventListener('scroll', handler);
};
}
return undefined;
}, []);
console.log('data = ', data);
return data;

@@ -59,0 +60,0 @@ }

{
"name": "use-scroll-bar",
"version": "1.0.3",
"version": "1.0.4",
"description": "Get information of window scrollbar like current position and direction of last scroll.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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