publ-echo-test 0.0.77 → 0.0.78

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.
@@ -171,7 +171,17 @@ var GridItem = function (_a) {
171
171
  * @return {Element} Child wrapped in Draggable.
172
172
  */
173
173
  var mixinDraggable = function (child, isDraggable) {
174
- return (_jsx(DraggableCore, { disabled: !isDraggable, onStart: onDragStart, onDrag: onDrag, onStop: onDragStop, handle: handle, cancel: ".react-resizable-handle" + (cancel ? "," + cancel : ""), scale: transformScale, nodeRef: elementRef, children: child }));
174
+ function onMouseDownDraggable() {
175
+ var _a, _b;
176
+ console.log('mouse down!');
177
+ if (!isDraggable) {
178
+ console.log('not draggable');
179
+ if ((_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.classList) {
180
+ (_b = elementRef.current) === null || _b === void 0 ? void 0 : _b.classList.add('pointer-events-none');
181
+ }
182
+ }
183
+ }
184
+ return (_jsx(DraggableCore, { disabled: !isDraggable, onMouseDown: onMouseDownDraggable, onStart: onDragStart, onDrag: onDrag, onStop: onDragStop, handle: handle, cancel: ".react-resizable-handle" + (cancel ? "," + cancel : ""), scale: transformScale, nodeRef: elementRef, children: child }));
175
185
  };
176
186
  /**
177
187
  * Mix a Resizable instance into a child.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",