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

@botmock/editor

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botmock/editor - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

7

components/panner/index.js
import "../../styling/panner.less";
import React from "react";
const MAX_ZOOM = 3.5;
const MIN_ZOOM = 0.1;
class Panner extends React.Component {

@@ -55,5 +58,5 @@ constructor(props) {

if (delta < 0) {
zoom -= zoom <= 0.05 ? 0 : zoom * 0.05;
zoom -= zoom <= MIN_ZOOM ? 0 : zoom * 0.05;
} else if (delta > 0) {
zoom += zoom >= 3.5 ? 0 : zoom * 0.05;
zoom += zoom >= MAX_ZOOM ? 0 : zoom * 0.05;
}

@@ -60,0 +63,0 @@

{
"name": "@botmock/editor",
"version": "0.1.4",
"version": "0.1.5",
"description": "Botmock Editor",

@@ -5,0 +5,0 @@ "main": "output/editor.esm.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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