
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
This module uses a modified Touchy.js to create normalized events for touch and mouse. The focus is on touch events, and this module is for building user interfaces for that paradigm.
Currently only three events are supported, "touchdown", "deltavector", and "liftoff", which are analogous to touchstart, touchmove, and touchend, as well as mousedown, mousedrag, and mouseup. A hover event may added, but that is a mouse-only event until the physical computing space gets a little more intimate. Until then, use mouse-around
npm install touchdown
This module is the event core for UXER, a user interface library with same goals as above.
var event = require('touchdown');
var el = document.getElementById('sweetSpot');
event.start(el);
// element is now registered for three events, so add listeners:
el.addEventListener('touchdown', touchdown)
el.addEventListener('deltavector', vectorChange)
el.addEventListener('liftoff', liftoff)
function touchdown(e){
var eventDetails = e.detail;
var pointOfContact = [ eventDetails.x , eventDetails.y ]
// ...
}
function vectorChange(e){
var eventDetails = e.detail;
var pointOfContact = [ eventDetails.x , eventDetails.y ]
var vector = eventDetails.vector
var lastPoint = eventDetails.lastPoint
// ...
}
function liftoff(e){
var eventDetails = e.detail;
var pointOfContact = [ eventDetails.x , eventDetails.y ]
var vector = eventDetails.vector
var lastPoint = eventDetails.lastPoint
var allPoints = eventDetails.allPoints
// ...
}
registers the element for events, and starts
registers the element, but events will not be fired until resume(element) is called
pauses an element, so events will not be called until resumed
resumes emitting events on that element
end emitting events on that element
FAQs
events for mouse and touch in one
We found that touchdown 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.