prefer onInteraction over more granular events for changing activeViewport
This commit is contained in:
1 parent
9b75d95e48
commit
ff371ece8d
2 files changed
+9
-17
No files matched your search
@@ -100,9 +100,7 @@ function ViewerViewportGrid(props) {
|
||||
className="m-1"
|
||||
acceptDropsFor="displayset"
|
||||
onDrop={onDropHandler}
|
||||
onScroll={() => { setActiveViewportIndex(viewportIndex); }}
|
||||
onClick={() => { setActiveViewportIndex(viewportIndex); }}
|
||||
onWheel={() => { setActiveViewportIndex(viewportIndex); }}
|
||||
onInteraction={() => { setActiveViewportIndex(viewportIndex); }}
|
||||
isActive={activeViewportIndex === viewportIndex}
|
||||
>
|
||||
<EmptyViewport />
|
||||
|
||||
Reference in new issue
Block a user