diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-30 19:50:56 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-30 19:50:56 -0400 |
| commit | d116f51faf21351c0a40258b2ba1f9146a5ab25e (patch) | |
| tree | 44d6e63f6983ebac46502e1f54d0e95414520b31 /src/client/views/DocumentDecorations.tsx | |
| parent | 5a9653ef22ba81226f1bc7fe4de14d3edced73e0 (diff) | |
made shift-clicking work through the currenlty selected document decoration background
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index fa7220e7d..066cfd95a 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -25,6 +25,7 @@ import React = require("react"); import e = require('express'); import { CurrentUserUtils } from '../util/CurrentUserUtils'; import { InkStrokeProperties } from './InkStrokeProperties'; +import { KeyManager } from './GlobalKeyHandler'; @observer export class DocumentDecorations extends React.Component<{}, { value: string }> { @@ -575,6 +576,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> "caret-up"; return <FontAwesomeIcon icon={button} className="documentView-minimizedIcon" />; } + render() { const darkScheme = CurrentUserUtils.ActiveDashboard?.darkScheme ? "dimgray" : undefined; const bounds = this.Bounds; @@ -625,7 +627,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> height: (bounds.b - bounds.y + this._resizeBorderWidth) + "px", left: bounds.x - this._resizeBorderWidth / 2, top: bounds.y - this._resizeBorderWidth / 2, - pointerEvents: this.Interacting ? "none" : "all", + pointerEvents: KeyManager.Instance.ShiftPressed || this.Interacting ? "none" : "all", zIndex: SelectionManager.SelectedDocuments().length > 1 ? 900 : 0, }} onPointerDown={this.onBackgroundDown} onContextMenu={e => { e.preventDefault(); e.stopPropagation(); }} > </div> |
