New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

microdrag

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microdrag

A fast and lightweight base library for creating draggable interactions

latest
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

Microdrag

Microdrag is a base library for creating draggable interactions.

NOTE: Microdrag is work in progress. The API will change and bugs are expected.

Features:

  • Lightweight core with a plugin system ensures no unnecessary processing while dragging
  • Custom frame of reference (i.e. viewport, document.body or any container can be the frame of reference)
  • Dragging in a scrollable container (mousewheel while dragging and scrolling the container when dragging the element towards a boundary)
  • Multi-touch drag of multiple items at once
  • Allows to filter dragged element position to modify or restrict its movement

Built-in plugins:

  • Containment plugin allows to restrict the movement of the dragged item
  • Snap plugin makes the dragged item snap to edges
  • Ref Frame Scroll plugin enables scrolling of the reference frame container when the dragged item approaches its boundary

This is not a drag and drop library, although a drag and drop plugin will be implemented at some point.

NOTE: Currently this library is something I have made only for myself. Lack of documentation is purposeful, it's not really meant for public use at this point and the API will change a lot.

Keywords

draggable

FAQs

Package last updated on 09 Jan 2025

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