diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-08-07 23:27:21 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-08-07 23:27:21 -0400 |
| commit | ebddce0975fa7e224e022cc075eee71abeacbe1d (patch) | |
| tree | a629963e9c12870aac72514ccf3aea55e1a94b22 /src/client/views/SearchItem.tsx | |
| parent | 941c50617a0cbaef054f2be856de013bd69ea81f (diff) | |
changed pdfs to render regions as collections. changed libraryBrush implementation.
Diffstat (limited to 'src/client/views/SearchItem.tsx')
| -rw-r--r-- | src/client/views/SearchItem.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/SearchItem.tsx b/src/client/views/SearchItem.tsx index 13e4b88f7..fd4b2420d 100644 --- a/src/client/views/SearchItem.tsx +++ b/src/client/views/SearchItem.tsx @@ -37,12 +37,10 @@ export class SearchItem extends React.Component<SearchProps> { return <FontAwesomeIcon icon={button} className="documentView-minimizedIcon" />; } onPointerEnter = (e: React.PointerEvent) => { - this.props.doc.libraryBrush = true; - Doc.SetOnPrototype(this.props.doc, "protoBrush", true); + Doc.BrushDoc(this.props.doc); } onPointerLeave = (e: React.PointerEvent) => { - this.props.doc.libraryBrush = false; - Doc.SetOnPrototype(this.props.doc, "protoBrush", false); + Doc.UnBrushDoc(this.props.doc); } collectionRef = React.createRef<HTMLDivElement>(); |
