Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@wildebeest/touch
Advanced tools
Add drag event to DOM elements. Drag event is triggered when user moves the mouse, while holding down left mouse button.
npm install --save @wildebeest/touch
It's usefull to know these libraries:
Making element to emit wbTouchscroll
, requires creating new instance of class TouchComponent
.
foo(emitterService: EmitterService): void
{
let element: any = document.querySelector('.touch-scroll');
let component: TouchComponent = new TouchComponent(element, emitterService.createEmitter());
}
In our example we used .touch-scroll
selector to select DOM element and then create TouchComponent
, that will listen to specific changes on this element. If it finds touch, it will emit touch event.
Touch event is called wbTouchscroll
and the event contains three values horizontal
and vertical
finger position difference after last touch. touchEvent
, which is the original TouchEvent
.
foo(emitterService: EmitterService): void
{
let element: any = document.querySelector('.touch-scroll');
let component: TouchComponent = new TouchComponent(element, emitterService.createEmitter());
dragable.getEmitter().on('wbTouchscroll' (data: any) => {
let verticalMovement: number = data.vertical;
let horizontalMovement: number = data.horizontal;
let originalEvent: TouchEvent = data.touchEvent;
});
}
FAQs
Touch event module
The npm package @wildebeest/touch receives a total of 2 weekly downloads. As such, @wildebeest/touch popularity was classified as not popular.
We found that @wildebeest/touch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.