ewvjs 1.0.14 → 1.0.15

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/dist/js/api.js CHANGED
@@ -8,10 +8,13 @@ window.ewvjs = {
8
8
  _hookDrag: function () {
9
9
  var lastClickTime = 0;
10
10
  window.addEventListener('mousedown', function (e) {
11
+ if (e.target.closest('.ewvjs-no-drag-region')) {
12
+ return;
13
+ }
11
14
  if (e.target.classList.contains('ewvjs-drag-region') || e.target.closest('.ewvjs-drag-region')) {
12
15
  if (e.button === 0) { // Left click
13
16
  var now = e.timeStamp;
14
- if (now - lastClickTime < 500) {
17
+ if (now - lastClickTime < 200) {
15
18
  if (window.__isWindowMaximized) {
16
19
  window.restore();
17
20
  } else {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ewvjs",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Embedded WebView for JavaScript - Edge WebView2 bindings for Node.js",
5
5
  "workspaces": [
6
6
  "packages/*"