onInteraction for panes wrapping viewports

This commit is contained in:
dannyrb committed 2020-05-25 20:55:51 -04:00
1 parent b396cc8d3f
commit 8573a4de13
1 file changed
+1
@@ -116,6 +116,7 @@ function ViewerViewportGrid(props) {
className="m-1"
acceptDropsFor="displayset"
onDrop={onDropHandler}
onInteraction={() => { setActiveViewportIndex(viewportIndex); }}
isActive={activeViewportIndex === viewportIndex}
>
<ViewportComponent