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

@bchteam/scroll-converter

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bchteam/scroll-converter

Converts vertical scrolling to horizontal.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-85.71%
Maintainers
2
Weekly downloads
 
Created
Source

@bchteam/scroll-converter

This script converts vertical scrolling to horizontal scrolling without any dependencies.

How it works

The methods from the package sets listener for mouse wheel scrolling the chosen element and updates the element's scrollLeft based on some calculations. Scrolling speed and step are not exactly the same as native scrolling's ones, but is good enough.

Usage

Install package

npm i -S @bchteam/scroll-converter

Import method

import scrollConverter from '@bchteam/scroll-converter'

Activate converting for element

const el = document.querySelector('.element-with-horizontal-scrolling')

scrollConverter.enable(el)

It can be deactivated also

scrollConverter.disable(el)

FAQs

Package last updated on 13 Nov 2018

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