🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

normalize-scroll-left

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-scroll-left

Utility library to determine and normalize Element.scrollLeft behavior

0.2.1
latest
Source
npm
Version published
Weekly downloads
198K
12.48%
Maintainers
1
Weekly downloads
 
Created

What is normalize-scroll-left?

The normalize-scroll-left npm package is designed to normalize the behavior of the scrollLeft property across different browsers. This is particularly useful when dealing with RTL (right-to-left) text direction, as different browsers handle the scrollLeft property differently in RTL mode.

What are normalize-scroll-left's main functionalities?

Normalize scrollLeft for RTL

This feature normalizes the scrollLeft value for an element, ensuring consistent behavior across different browsers when dealing with RTL text direction.

const normalizeScrollLeft = require('normalize-scroll-left');

const element = document.getElementById('myElement');
const normalizedScrollLeft = normalizeScrollLeft(element, element.scrollLeft);
console.log(normalizedScrollLeft);

Other packages similar to normalize-scroll-left

Keywords

rtl

FAQs

Package last updated on 07 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts