Skip to content

Commit 2bf5ac0

Browse files
[mirotalk] -fix(widget): allow controls to work while draggable
1 parent 6a66ed1 commit 2bf5ac0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

public/js/widget.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class MiroTalkWidget {
173173

174174
function onPointerDown(e) {
175175
if (e.button !== 0) return;
176+
if (e.target.closest('.widget-controls')) return;
176177
e.preventDefault();
177178
isDragging = true;
178179
startX = e.clientX;

0 commit comments

Comments
 (0)