Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easey

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easey - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

2

package.json
{
"name": "easey",
"version": "2.0.5",
"version": "2.0.6",
"description": "Easing for Modest Maps",

@@ -5,0 +5,0 @@ "author": {

@@ -53,2 +53,3 @@ ;(function(context, MM) {

function touchStartMachine(e) {
if (!panner) panner = panning(map, 0.10);
MM.addEvent(e.touches[0].target, 'touchmove',

@@ -105,8 +106,2 @@ touchMoveMachine);

function isTouchable() {
var el = document.createElement('div');
el.setAttribute('ongesturestart', 'return;');
return (typeof el.ongesturestart === 'function');
}
function onPinching(e) {

@@ -217,15 +212,9 @@ // use the first two touches and their previous positions

map = x;
// Fail early if this isn't a touch device.
// TODO: move to add fn
if (!isTouchable()) return false;
MM.addEvent(map.parent, 'touchstart',
touchStartMachine);
panner = panning(map, 0.10);
};
handler.remove = function() {
// Fail early if this isn't a touch device.
if (!isTouchable()) return false;
if (!panner) return;
MM.removeEvent(map.parent, 'touchstart',

@@ -232,0 +221,0 @@ touchStartMachine);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc