New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wildebeest/scroll

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wildebeest/scroll - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

1

dist/ScrollBox.d.ts

@@ -25,2 +25,3 @@ import { DomService, EmitterService, Emitter } from "@wildebeest/common";

protected normalizeRemaining(pixelValue: number): number;
protected normalize(pixelValue: number): number;
}

@@ -45,3 +45,3 @@ "use strict";

scrollMark.getEmitter().on('wbDrag', function (event) {
_this.scrollBar.scrollBy(_this.normalizeRemaining(event.vertical));
_this.scrollBar.scrollBy(_this.normalize(event.vertical));
});

@@ -101,2 +101,8 @@ this.element.addEventListener('mousewheel', function (event) {

};
ScrollBox.prototype.normalize = function (pixelValue) {
if (this.element.offsetHeight <= 0) {
return 0;
}
return pixelValue / this.element.offsetHeight;
};
ScrollBox = __decorate([

@@ -103,0 +109,0 @@ inversify_1.injectable(),

2

package.json
{
"name": "@wildebeest/scroll",
"version": "0.3.5",
"version": "0.3.6",
"description": "Scroll element with custom scroll bar",

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

@@ -50,3 +50,3 @@ import { DomService, EmitterService, Emitter } from "@wildebeest/common";

scrollMark.getEmitter().on('wbDrag', (event: any) => {
this.scrollBar.scrollBy(this.normalizeRemaining(event.vertical));
this.scrollBar.scrollBy(this.normalize(event.vertical));
});

@@ -122,2 +122,10 @@

}
protected normalize(pixelValue: number): number
{
if (this.element.offsetHeight <= 0) {
return 0;
}
return pixelValue / this.element.offsetHeight;
}
}

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