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

@vaadin/vaadin-element-mixin

Package Overview
Dependencies
Maintainers
16
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-element-mixin - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

vaadin-dir-helper.js

2

package.json

@@ -12,3 +12,3 @@ {

"name": "@vaadin/vaadin-element-mixin",
"version": "2.3.1",
"version": "2.3.2",
"main": "vaadin-element-mixin.js",

@@ -15,0 +15,0 @@ "author": "Vaadin Ltd",

@@ -0,1 +1,2 @@

import { DirHelper } from './vaadin-dir-helper.js';
/**

@@ -12,2 +13,4 @@ * Array of Vaadin custom element classes that have been subscribed to the dir changes.

const scrollType = DirHelper.detectScrollType();
const directionObserver = new MutationObserver(directionUpdater);

@@ -89,2 +92,10 @@ directionObserver.observe(document.documentElement, {attributes: true, attributeFilter: ['dir']});

}
__getNormalizedScrollLeft(element) {
return DirHelper.getNormalizedScrollLeft(scrollType, this.getAttribute('dir') || 'ltr', element);
}
__setNormalizedScrollLeft(element, scrollLeft) {
return DirHelper.setNormalizedScrollLeft(scrollType, this.getAttribute('dir') || 'ltr', element, scrollLeft);
}
};
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