Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
202K
increased by6.07%
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

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

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