@ray-js/lamp-circle-picker 1.0.11-beta-1 → 1.0.11-beta-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.
@@ -64,7 +64,7 @@ export default Render({
64
64
  this.callMethod('initedCanvas', {});
65
65
  },
66
66
  async renderAnnulusColorThumb(id, temp = 0) {
67
- if (!this.hideThumb) {
67
+ if (this.hideThumb) {
68
68
  return;
69
69
  }
70
70
  if (!this.canvasThumb) {
@@ -98,7 +98,7 @@ export default Render({
98
98
  this.updateThumbPosition(x, y, { r: data[0], g: data[1], b: data[2] });
99
99
  },
100
100
  updateThumbPosition(x, y, rgb) {
101
- if (!this.hideThumb) {
101
+ if (this.hideThumb) {
102
102
  return;
103
103
  }
104
104
  if (!this.canvasThumb) {
@@ -230,7 +230,7 @@ export default Render({
230
230
  this._getRgb(validXY.x, validXY.y);
231
231
  },
232
232
  handleCanvasMoveEvent(evt) {
233
- if (!this.hideThumb) {
233
+ if (this.hideThumb) {
234
234
  return;
235
235
  }
236
236
 
@@ -245,7 +245,7 @@ export default Render({
245
245
  this._getRgb(validXY.x, validXY.y);
246
246
  },
247
247
  addEventListeners() {
248
- if (!this.hideThumb) {
248
+ if (this.hideThumb) {
249
249
  return;
250
250
  }
251
251
  this.canvasThumb.addEventListener('touchstart', this.handleCanvasStartEvent, false);
@@ -253,7 +253,7 @@ export default Render({
253
253
  this.canvasThumb.addEventListener('touchend', this.handleCanvasEndEvent, false);
254
254
  },
255
255
  removeEventListeners() {
256
- if (!this.hideThumb) {
256
+ if (this.hideThumb) {
257
257
  return;
258
258
  }
259
259
  this.canvasThumb.removeEventListener('touchstart', this.handleCanvasStartEvent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-circle-picker",
3
- "version": "1.0.11-beta-1",
3
+ "version": "1.0.11-beta-2",
4
4
  "description": "照明缺角色环",
5
5
  "main": "lib/index",
6
6
  "files": [