aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MarqueeAnnotator.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-17 02:14:31 -0400
committerbobzel <zzzman@gmail.com>2021-09-17 02:14:31 -0400
commitf5c4aa829955467c37ff35fb47b6d3c47fef4590 (patch)
treee7e1726781fd1002c57900e9bb86864881ead277 /src/client/views/MarqueeAnnotator.tsx
parent1de71a39f1f6ebc2c909c92694db340cc9b256a0 (diff)
fixed right-drag marquee on webBox on Mac
Diffstat (limited to 'src/client/views/MarqueeAnnotator.tsx')
-rw-r--r--src/client/views/MarqueeAnnotator.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/MarqueeAnnotator.tsx b/src/client/views/MarqueeAnnotator.tsx
index 26e76090a..563261dec 100644
--- a/src/client/views/MarqueeAnnotator.tsx
+++ b/src/client/views/MarqueeAnnotator.tsx
@@ -31,7 +31,7 @@ export interface MarqueeAnnotatorProps {
annotationLayer: HTMLDivElement;
addDocument: (doc: Doc) => boolean;
getPageFromScroll?: (top: number) => number;
- finishMarquee: (x?: number, y?: number) => void;
+ finishMarquee: (x?: number, y?: number, PointerEvent?: PointerEvent) => void;
anchorMenuClick?: () => undefined | ((anchor: Doc) => void);
}
@observer
@@ -222,10 +222,10 @@ export class MarqueeAnnotator extends React.Component<MarqueeAnnotatorProps> {
if (AnchorMenu.Instance.Highlighting) {// when highlighter has been toggled when menu is pinned, we auto-highlight immediately on mouse up
this.highlight("rgba(245, 230, 95, 0.75)", false); // yellowish highlight color for highlighted text (should match AnchorMenu's highlight color)
}
- this.props.finishMarquee();
+ this.props.finishMarquee(undefined, undefined, e);
} else {
runInAction(() => this._width = this._height = 0);
- this.props.finishMarquee(cliX, cliY);
+ this.props.finishMarquee(cliX, cliY, e);
}
}