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

bonaparte-scroll

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bonaparte-scroll - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

4

package.json
{
"name": "bonaparte-scroll",
"version": "0.0.29",
"version": "0.0.30",
"description": "Bonaparte Component",

@@ -15,3 +15,3 @@ "homepage": "http://bonaparte.io",

"dependencies": {
"bonaparte-core": "^0.0.29"
"bonaparte-core": "^0.0.30"
},

@@ -18,0 +18,0 @@ "main": "bonaparte.build.js",

@@ -18,17 +18,8 @@ var bp = require("bonaparte-core");

// Initialize
bp.tag.DOMReady(function(){
content = tag.firstElementChild;
bp.tag.DOMReady(setContent);
tag.addEventListener("bonaparte.tag.childrenChanged", setContent);
setupScroller();
if(bp.attribute.get(tag, "resize") !== "false")
window.addEventListener("resize", update);
///////////////////////////////////////////////////////////////////////////////
// Eventlisteners
if(bp.attribute.get(tag, "resize") !== "false")
window.addEventListener("resize", update);
content.addEventListener("scroll", updatePosition);
});
///////////////////////////////////////////////////////////////////////////////

@@ -43,3 +34,16 @@ // Public

function setContent(){
if(content === tag.firstElementChild) return;
content = tag.firstElementChild;
if(!content) return;
content.addEventListener("scroll", updatePosition);
if(tag.children.length === 1) setupScroller();
update();
}
///////////////////////////////////////////////////////////////////////////////
function update(){
if(!content) return;
var containerHeight = tag.offsetHeight;

@@ -97,4 +101,2 @@ var scrollHeight = content.scrollHeight;

update();
tag.appendChild(scrollbar);

@@ -101,0 +103,0 @@

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