@kizmann/nano-ui 2.0.1 → 2.0.2

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": "@kizmann/nano-ui",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -56,6 +56,6 @@
56
56
  "webpack-dev-server": "^5.2.3"
57
57
  },
58
58
  "dependencies": {
59
- "@kizmann/pico-js": "^2.0.5"
59
+ "@kizmann/pico-js": "^2.0.6"
60
60
  }
61
61
  }
@@ -164,27 +164,27 @@ class NDraghandler
164
164
 
165
165
  Dom.find(this.rootNode.$el).on('dragenter', Run.framebuffer((event) => {
166
166
  this.onDragenterRoot(event);
167
- }, key + 'dragenter', 140));
167
+ }, key + 'dragenter', 100));
168
168
 
169
169
  Dom.find(this.rootNode.$el).on('dragover', Run.framebuffer((event) => {
170
170
  this.onDragoverRoot(event);
171
- }, key + 'dragover', 240));
171
+ }, key + 'dragover', 200));
172
172
 
173
173
  Dom.find(this.rootNode.$el).on('dragleave', Run.framebuffer((event) => {
174
174
  this.onDragleaveRoot(event);
175
- }, key + 'dragleave', 340));
175
+ }, key + 'dragleave', 300));
176
176
 
177
177
  Dom.find(this.rootNode.$el).on('dragend', Run.framebuffer((event) => {
178
178
  this.onDragendRoot(event);
179
- }, key + 'dragend', 440));
179
+ }, key + 'dragend', 400));
180
180
 
181
181
  Dom.find(this.rootNode.$el).on('drop', Run.framebuffer((event) => {
182
182
  this.onDragdropRoot(event);
183
- }, key + 'drop', 540));
183
+ }, key + 'drop', 500));
184
184
 
185
185
  Dom.find(this.rootNode.$el).on('dragdrop', Run.framebuffer((event) => {
186
186
  this.onDragdropRoot(event);
187
- }, key + 'dragdrop', 640));
187
+ }, key + 'dragdrop', 600));
188
188
 
189
189
  Event.bind('NDrag:start', this.bindDragstart.bind(this),
190
190
  this.rootNode.uid);
@@ -540,7 +540,7 @@ class NDraghandler
540
540
 
541
541
  $el.on('dragdrop', Run.framebuffer((event) => {
542
542
  this.onDragdropNode(event, node);
543
- }, `${id}-dnode-dragdrop`, 650), { id });
543
+ }, `${id}-dnode-dragdrop`, 550), { id });
544
544
 
545
545
  this.childNodes[node.uid] = node;
546
546
  }
@@ -139,11 +139,9 @@ export class PopoverElement
139
139
  this.events['open'].apply({}, [event]);
140
140
  }
141
141
 
142
- requestAnimationFrame(() => {
143
- this.updatePosition();
144
- });
142
+ this.updatePosition();
145
143
 
146
- requestAnimationFrame(() => {
144
+ requestIdleCallback(() => {
147
145
  this.bindResizeObserver();
148
146
  });
149
147
 
@@ -92,7 +92,7 @@ export default {
92
92
  data()
93
93
  {
94
94
  return {
95
- _key: null, init: false
95
+ init: false
96
96
  }
97
97
  },
98
98