@vaadin/vaadin-element-mixin
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -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); | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25326
7
223