jack vor 3 Jahren
Ursprung
Commit
c74eb2e5d2
1 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  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(() => {