jsmind 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/jsmind.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // __name__ should be a const value, Never try to change it easily.
13
13
  var __name__ = 'jsMind';
14
14
  // library version
15
- var __version__ = '0.4.11';
15
+ var __version__ = '0.4.12';
16
16
  // author
17
17
  var __author__ = 'hizzgdev@163.com';
18
18
 
@@ -1133,8 +1133,7 @@
1133
1133
  // Avoid default page scrolling behavior.
1134
1134
  event.preventDefault()
1135
1135
 
1136
- var dir = event.deltaY > 0 ? "Up" : "Down"
1137
- if (dir == "Up") {
1136
+ if (event.deltaY < 0) {
1138
1137
  this.view.zoomIn()
1139
1138
  } else {
1140
1139
  this.view.zoomOut()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsmind",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "jsMind is a pure javascript library for mindmap, it base on html5 canvas. jsMind was released under BSD license, you can embed it in any project, if only you observe the license.",
5
5
  "main": "js/jsmind.js",
6
6
  "directories": {