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.
@quintenkasteel/useswipe
Advanced tools
Readme
A simple to use library that provides useSwipe hook for React that enables swipe gestures for touch screens.
import useSwipe from '@quintenkasteel/useswipe'
example without element
const swipe = useSwipe({})
example with element
const swipe = useSwipe(".header", true)
element: String
DOM element where the swipe is enabled. default value is body.
preventDefault: Bool
Prevent all default events when moving. for example scrolling.
onStart: () => {}
function that will be fired on start of moving. (not yet in)
onMove: () => {}
function that will be fired on every move. (not yet in)
onEnd: () => {}
function that will be fired on end of moving. (not yet in)
onCancel: () => {}
function that will be fired on cancel of moving. (not yet in)
direction: String
Get the current swiping direction in uppercase.
one of: "RIGHT" | "LEFT" | "DOWN" | "UP"
distance: Number
Get the swiped amount in pixels.
startX: Number
Get the starting X position in pixels.
startY: Number
Get the starting Y position in pixels.
endX: Number
Get the end X position in pixels.
endY: Number
Get the end Y position in pixels.
startTime: Date
Get the date at the beginning of the swipe.
elapsedTime: Number
Get the duration of the swipe in seconds.
speed: Number
Get the speed of the swipe
isSwiping: Bool
True when swiping.
FAQs
A simple to use library that provides useSwipe hook for React that enables swipe gestures for touch screens.
The npm package @quintenkasteel/useswipe receives a total of 190 weekly downloads. As such, @quintenkasteel/useswipe popularity was classified as not popular.
We found that @quintenkasteel/useswipe 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.