diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-23 15:04:25 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-23 15:04:25 -0400 |
| commit | 7096b3a4c888816db9196f56a7bc01b89558d0ce (patch) | |
| tree | 31d276dee110693db9110c2c58445b00d7f3f4de /src/client/views/nodes/DocumentView.tsx | |
| parent | a7d5b7da561715c8f78cac94efe37cd4b6266188 (diff) | |
improved selection/play/context menu behavior of youtube videos. fixed youtube videos to pinwithview better by capturing timecode after a seek drag event so that you can pin with view.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
| -rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 08a4a7e23..96ae1dc2b 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -889,7 +889,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu e?.stopPropagation(); // DocumentViews should stop propagation of this event } cm.displayMenu((e?.pageX || pageX || 0) - 15, (e?.pageY || pageY || 0) - 15); - !this.isSelected(true) && SelectionManager.SelectDoc(this, false); + !this.isSelected(true) && setTimeout(() => SelectionManager.SelectDoc(this, false), 300); // on a mac, the context menu is triggered on mouse down, but a YouTube video becaomes interactive when selected which means that the context menu won't show up. by delaying the selection until hopefully after the pointer up, the context menu will appear. }); } |
