diff options
author | mehekj <mehek.jethani@gmail.com> | 2022-06-05 11:47:51 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2022-06-05 11:47:51 -0400 |
commit | 4401bb75aea7cf8398d1fe7e23725172d9cb4ebd (patch) | |
tree | c1b7544e6154078679ed9e398896e07d8645bf73 | |
parent | 7a4e8b6352d06242d3c8006256f395c59f8d342a (diff) |
cleanup from search box popup test
-rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index a4b7ffb9b..3ffd813d6 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -23,7 +23,6 @@ import { ContextMenu } from "../ContextMenu"; import { ContextMenuProps } from "../ContextMenuItem"; import { ViewBoxAnnotatableComponent, ViewBoxAnnotatableProps } from "../DocComponent"; import { DocumentDecorations } from "../DocumentDecorations"; -import { LinkPopup } from "../linking/LinkPopup"; import { MarqueeAnnotator } from "../MarqueeAnnotator"; import { AnchorMenu } from "../pdf/AnchorMenu"; import { StyleProp } from "../StyleProvider"; @@ -99,7 +98,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp @observable _volume: number = 1; @observable _muted: boolean = false; @observable _controlsTransform?: { X: number, Y: number }; - // @observable _showLinkPopup = false; @computed get links() { return DocListCast(this.dataDoc.links); } @computed get heightPercent() { return NumCast(this.layoutDoc._timelineHeightPercent, 100); } // current percent of video relative to VideoBox height @@ -632,19 +630,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp } } - @action - onAudioDown = (e: React.PointerEvent) => { - e.stopPropagation(); - setupMoveUpEvents(this, e, returnFalse, returnFalse, action((e: PointerEvent, doubleTap?: boolean) => { - if (doubleTap && !this._fullScreen) { - // console.log("hello"); - // this._showLinkPopup = !this._showLinkPopup; - } else { - this.toggleMute(); - } - })); - } - // toggles video mute @action toggleMute = () => { @@ -742,7 +727,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp return this._fullScreen ? null : <div className="videoBox-ui-wrapper" style={{ clip: `rect(${boundsTop}px, 10000px, 10000px, ${boundsLeft}px)` }}> <div className="videoBox-ui" style={{ left: left - overflow, top: yPos, width: width }}> {this.UIButtons} - {/* <LinkPopup key="popup" showPopup={this._showLinkPopup} linkFrom={emptyFunction} />, */} </div> </div> } @@ -797,7 +781,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp <div className="videobox-button show-slider" title={this._muted ? "unmute" : "mute"} - onPointerDown={this.onAudioDown}> + onPointerDown={(e) => { e.stopPropagation(); this.toggleMute(); }}> <FontAwesomeIcon icon={this._muted ? "volume-mute" : "volume-up"} /> </div> <input type="range" step="0.1" min="0" max="1" value={this._muted ? 0 : this._volume} |