jack %!s(int64=3) %!d(string=hai) anos
pai
achega
c74eb2e5d2
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      src/components/functionFan2.vue

+ 6 - 3
src/components/functionFan2.vue

@@ -233,9 +233,12 @@ export default {
       this.isCamera = true;
       let video = this.$refs["video"];
       var that = this;
-      window.requestAnimationFrame(function () {
-        that.handsFind(video);
-        that.start();
+      var f = window.requestAnimationFrame(function () {
+        window.cancelAnimationFrame(f);
+        setTimeout(function () {
+          that.handsFind(video);
+          that.start();
+        }, 1000);
       });
 
       // setInterval(() => {