diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-02 20:59:10 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-02 20:59:10 -0400 |
| commit | 7304217fd9559c35e34c16d5e4e025875adc3252 (patch) | |
| tree | 14033a56f0e53b3f7467ca8abe2be3ec170f0abd /src/client/views/InkingStroke.tsx | |
| parent | 85e1eeb77241303307ff5f98d550663e18b807b8 (diff) | |
put in a patch for inking up to canvas limit of 8192
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
| -rw-r--r-- | src/client/views/InkingStroke.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index 52111c711..44048f377 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -48,9 +48,10 @@ export class InkingStroke extends React.Component<StrokeProps> { let pathStyle = this.createStyle(); let pathData = this.parseData(this.props.line); + let pointerEvents: any = InkingControl.Instance.selectedTool == InkTool.Eraser ? "all" : "none"; return ( - <path className={(this._strokeTool === InkTool.Highlighter) ? "highlight" : ""} - d={pathData} style={{ ...pathStyle, pointerEvents: "all" }} strokeLinejoin="round" strokeLinecap="round" + <path className={(this._strokeTool === InkTool.Highlighter) ? "highlight" : "normal"} + d={pathData} style={{ ...pathStyle, pointerEvents: pointerEvents }} strokeLinejoin="round" strokeLinecap="round" onPointerOver={this.deleteStroke} onPointerDown={this.deleteStroke} /> ) } |
