layerpro 0.0.61 → 0.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layerpro",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "Manage your popups and customize them",
5
5
  "deprecated": false,
6
6
  "appCode": "layerpro",
@@ -5,7 +5,7 @@ License: MIT
5
5
 
6
6
  import { createRoot } from 'react-dom/client'
7
7
 
8
- export const GenLayer = (p) => {
8
+ export const genLayer = (p) => {
9
9
 
10
10
  var root // FUCKYOU FACEBOOK!
11
11
 
@@ -30,7 +30,7 @@ export const getMouseDirection = function (e) {
30
30
  oldX = e.pageX
31
31
  oldY = e.pageY
32
32
 
33
- console.log(xDirection)
33
+ //console.log(xDirection)
34
34
 
35
35
  return xDirection
36
36
 
package/scripts/popup.jsx CHANGED
@@ -5,7 +5,7 @@ License: MIT
5
5
 
6
6
  //import React, { useState, useEffect } from "react";
7
7
 
8
- import { GenLayer } from "./GenLayer.jsx"
8
+ import { genLayer } from "./genLayer.jsx"
9
9
  import { mouseCoord } from "./mouseCoords.jsx"
10
10
  import "./message.jsx"
11
11
 
@@ -93,7 +93,7 @@ export const popup = {
93
93
 
94
94
  // Creation of final PopUp (avoid to recreate if same id exist)
95
95
  if ($('.popup_window_' + p.id, '#popup').length === 0) {
96
- GenLayer(p)
96
+ genLayer(p)
97
97
  }
98
98
 
99
99
  /*******************************************************************/
@@ -348,7 +348,7 @@ export const popup = {
348
348
  }
349
349
  })
350
350
 
351
- _dragger.on('dblclick', function (p) {
351
+ _dragger.on('dblclick', function (e) {
352
352
  layerpro.popup.maximize(p)
353
353
  })
354
354