@cocreate/resize 1.2.0 → 1.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.1](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.2.0...v1.2.1) (2022-07-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed console.logs ([884c02e](https://github.com/CoCreate-app/CoCreate-resize/commit/884c02e8aeef5805d9269dbc0de518ff41789d11))
7
+
1
8
  # [1.2.0](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.76...v1.2.0) (2022-06-29)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/resize",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A light weight resize handler make any element resizable by adding data attributes or usinng init object. Great for Customized text box or text area.",
5
5
  "keywords": [
6
6
  "resize",
package/src/index.js CHANGED
@@ -119,8 +119,6 @@ CoCreateResize.prototype = {
119
119
  DIRECTIONS.map(d => {
120
120
  if (this.Drags[d])
121
121
  this.addListenerMulti(this.Drags[d], EVENTS[0], this.checkCorners[d]);
122
- console.log('checkCorner', this.checkCorners[d])
123
- console.log('drags', this.Drags[d])
124
122
  });
125
123
  },
126
124
 
@@ -185,20 +183,16 @@ CoCreateResize.prototype = {
185
183
 
186
184
  initTopDrag: function(e) {
187
185
  this.initDrag(e, 'top');
188
- console.log('resize-top')
189
186
  },
190
187
  initBottomDrag: function(e) {
191
188
  this.initDrag(e, 'bottom');
192
- console.log('resize-bottom')
193
189
  },
194
190
  initLeftDrag: function(e) {
195
191
  this.initDrag(e, 'left');
196
- console.log('resize-left')
197
192
 
198
193
  },
199
194
  initRightDrag: function(e) {
200
195
  this.initDrag(e, 'right');
201
- console.log('resize-right')
202
196
  },
203
197
 
204
198
  //this is just for grid system
@@ -261,7 +255,6 @@ CoCreateResize.prototype = {
261
255
  if (e.touches)
262
256
  e = e.touches[0];
263
257
  left = this.startLeft + e.clientX - this.startX;
264
- console.log('left', left)
265
258
  width = this.startWidth - e.clientX + this.startX;
266
259
 
267
260
  if (width < 10)