aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkingStroke.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-01-28 22:39:23 -0500
committermehekj <mehek.jethani@gmail.com>2023-01-28 22:39:23 -0500
commit9f139c7f0f571bdfea8ce99fc0a507724eb8fd74 (patch)
tree4de6642112f9c6c2df1a85cf8fa9ed700bb94cbd /src/client/views/InkingStroke.tsx
parent9d2af1180f0dd5af5ab86b922cd8b0cdfcf4ea09 (diff)
parent95b8a5a2b470d3118b6eeac484a45b23df2830b4 (diff)
Merge branch 'master' into schema-mehek
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
-rw-r--r--src/client/views/InkingStroke.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index a6fa2f04b..319a9419e 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -78,8 +78,8 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() {
// fit within its panel (e.g., for content fitting views like Lightbox or multicolumn, etc)
screenToLocal = () => this.props.ScreenToLocalTransform().scale(this.props.NativeDimScaling?.() || 1);
- getAnchor = () => {
- return this._subContentView?.getAnchor?.() || this.rootDoc;
+ getAnchor = (addAsAnnotation: boolean) => {
+ return this._subContentView?.getAnchor?.(addAsAnnotation) || this.rootDoc;
};
scrollFocus = (textAnchor: Doc, options: DocFocusOptions) => {