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.
slide-event
Advanced tools
Readme
Simple library for listening on vertical "slide events" initiated trackpad, mouse, mobile touch, etc.
Not to be confused with general gesture libraries handling various swipe events as known from e.g. HammerJS and QuoJS.
Inspired by the slide feature from fullPage.js.
Minified library size: 3KB.
npm install slide-event
Use development or minified version found in the dist/browser
folder of this repository.
// Import (node usage)
import SlideEvent from 'slide-event'
// Add listener
SlideEvent.addListener(event => {
console.log(event.direction) // -1 if sliding up, 1 if sliding down
})
// Remove all listeners
SlideEvent.removeListeners()
A demo is found the demo
folder of this repository. Install http-server globally npm install -g http-server
and run it from the root of this repository http-server .
, you can then access the /demo/
folder and try out the demo ... Or you can just click below ;-)
SlideEvent is tested in latest versions of Chrome, Firefox, and Safari on macOS. Tested in Chrome on Android. The compiled browser version supports legacy dom event binding and uses regular old fashioned JavaScript, so it should work in all major browsers (including legacy versions.)
Tested: November 2016
Want to build your own version? Sure! Just follow these instructions:
npm install
npm run build
And voilá, you will have your own custom builds in the dist
folder. Easy, eh?
Please do so, hit me up at henrikhaugboelle@gmail.com :-)
FAQs
Simple library for listening on vertical "slide events" initiated trackpad, mouse, mobile touch, etc.
The npm package slide-event receives a total of 5 weekly downloads. As such, slide-event popularity was classified as not popular.
We found that slide-event 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
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.