@canvas3/nuxt 0.1.22 → 0.1.23

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "canvas-nuxt-layout",
3
3
  "configKey": "canvas3Layout",
4
- "version": "0.1.22",
4
+ "version": "0.1.23",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -412,21 +412,24 @@ class Canvas3Class {
412
412
  if (this.meshPositionsUpdate) {
413
413
  this.resizeImageStore();
414
414
  }
415
- this.externalAnimationsRender();
415
+ if (this.animations.size > 0)
416
+ this.externalAnimationsRender();
416
417
  if (this.materials.length > 0) {
417
418
  for (const material of this.materials) {
418
419
  if (material.uniforms.uTime)
419
420
  material.uniforms.uTime.value = this.time;
420
- if (material.uniforms.uMouse)
421
- material.uniforms.uMouse.value.set(
422
- this.mouse.x,
423
- this.mouse.y
424
- );
425
- if (material.uniforms.uMouseMovement)
426
- material.uniforms.uMouseMovement.value.set(
427
- this.mouse.movementX,
428
- this.mouse.movementY
429
- );
421
+ if (this.mouseMoveInProgress) {
422
+ if (material.uniforms.uMouse)
423
+ material.uniforms.uMouse.value.set(
424
+ this.mouse.x,
425
+ this.mouse.y
426
+ );
427
+ if (material.uniforms.uMouseMovement)
428
+ material.uniforms.uMouseMovement.value.set(
429
+ this.mouse.movementX,
430
+ this.mouse.movementY
431
+ );
432
+ }
430
433
  }
431
434
  }
432
435
  if (this.composer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvas3/nuxt",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },