From cd6508a69a5b56c8c7d9a5c41cae63b4dcca494d Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 19 Nov 2023 14:58:02 -0500 Subject: from last --- src/client/views/nodes/DocumentView.tsx | 8 +++++++- src/client/views/nodes/VideoBox.tsx | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 66a431bf0..fbb42ef87 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1617,7 +1617,13 @@ export class DocumentView extends React.Component { PanelHeight = () => this.panelHeight; NativeDimScaling = () => this.nativeScaling; selfView = () => this; - trueNativeWidth = () => returnVal(this.props.NativeWidth?.(), Doc.NativeWidth(this.layoutDoc, this.props.DataDoc, false)); + trueNativeWidth = () => { + const rval = returnVal(this.props.NativeWidth?.(), Doc.NativeWidth(this.layoutDoc, this.props.DataDoc, false)); + if (rval !== this.NativeWidth()) { + console.log("WHAT's GOING ON>???" + this.rootDoc.title + ' ' + rval + ' ' + this.NativeWidth()); + } + return rval; + }; screenToLocalTransform = () => this.props .ScreenToLocalTransform() diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 81749c98b..459b3036d 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -162,7 +162,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent !this._playing && this.Seek(NumCast(this.layoutDoc._layout_currentTimecode)) ); this._disposers.youtubeReactionDisposer = reaction( - () => Doc.ActiveTool === InkTool.None && this.props.isSelected(true) && !SnappingManager.GetIsDragging() && !DocumentView.Interacting, + () => Doc.ActiveTool === InkTool.None && this.props.isSelected() && !SnappingManager.GetIsDragging() && !DocumentView.Interacting, interactive => (iframe.style.pointerEvents = interactive ? 'all' : 'none'), { fireImmediately: true } ); -- cgit v1.2.3-70-g09d2