2 Commits da6d84444c ... f5fd23b975

Autore SHA1 Messaggio Data
  Lita-Tako f5fd23b975 Merge branch 'refs/heads/dev-2.19.0' into dev 4 mesi fa
  Lita-Tako 7abcc8fdee 视频相关 4 mesi fa
1 ha cambiato i file con 30 aggiunte e 4 eliminazioni
  1. 30 4
      src/components/video/Live.vue

+ 30 - 4
src/components/video/Live.vue

@@ -430,12 +430,38 @@
430 430
 						</div>
431 431
 					</div>
432 432
 					<div class="row">
433
-						<a-button type="primary" class="mr-5 btn" @click="doControl1('FOCUS_NEAR')"> + 聚焦 </a-button>
434
-						<a-button type="primary" class="btn" @click="doControl1('FOCUS_FAR')">- 聚焦</a-button>
433
+						<a-button
434
+							type="primary"
435
+							class="mr-5 btn"
436
+							@mousedown="doControl('FOCUS_NEAR', 0)"
437
+							@mouseup="doControl('FOCUS_NEAR', 1)"
438
+						>
439
+							+ 聚焦
440
+						</a-button>
441
+						<a-button
442
+							type="primary"
443
+							class="btn"
444
+							@mousedown="doControl('FOCUS_FAR', 0)"
445
+							@mouseup="doControl('FOCUS_FAR', 1)"
446
+							>- 聚焦</a-button
447
+						>
435 448
 					</div>
436 449
 					<div class="row">
437
-						<a-button type="primary" class="mr-5 btn" @click="doControl1('ZOOM_IN')"> + 调焦 </a-button>
438
-						<a-button type="primary" class="btn" @click="doControl1('ZOOM_OUT')">- 调焦</a-button>
450
+						<a-button
451
+							type="primary"
452
+							class="mr-5 btn"
453
+							@mousedown="doControl('ZOOM_IN', 0)"
454
+							@mouseup="doControl('ZOOM_IN', 1)"
455
+						>
456
+							+ 调焦
457
+						</a-button>
458
+						<a-button
459
+							type="primary"
460
+							class="btn"
461
+							@mousedown="doControl('ZOOM_OUT', 0)"
462
+							@mouseup="doControl('ZOOM_OUT', 1)"
463
+							>- 调焦</a-button
464
+						>
439 465
 					</div>
440 466
 					<!--					<div class="row">-->
441 467
 					<!--						<a-button type="primary" class="mr-5 btn"> 录像开始 </a-button>-->