Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@okiba/drag-emitter
Advanced tools
Readme
Emits drag events for all common pointers kinds (touch & mouse)
__
npm i --save @okiba/drag-emitter
Or import it directly in the browser
<script type="module" src="https://unpkg.com/@okiba/drag-emitter/index.js"></script>
import DragEmitter from '@okiba/drag-emitter'
Okiba Core packages are not transpiled, so don't forget to transpile them with your favourite bundler. For example, using Babel with Webpack, you should prevent imports from okiba to be excluded from transpilation, like follows:
{
test: /\.js$/,
exclude: /node_modules\/(?!(@okiba)\/).*/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
import {DragEmitter} from '@okiba/drag-emitter'
import {qs} from '@okiba/dom'
const dragEmitter = new DragEmitter(qs('.container'))
dragEmitter.on(
'drag',
({deltaX, clientX, deltaY, clientY}) => {
console.log(deltaX, clientX, deltaY, clientY)
}
el
: Element
Element whose surface is used for drag events
Unbinds events from the element and deletes the reference. To be called when the instance is not needed anymore for cleanup.
FAQs
Unified drag events emitter for mouse and touch
The npm package @okiba/drag-emitter receives a total of 0 weekly downloads. As such, @okiba/drag-emitter popularity was classified as not popular.
We found that @okiba/drag-emitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.