@botmock/editor
Advanced tools
Comparing version 0.1.4 to 0.1.5
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9814
392911