Describe Your Question
The current version does not support the function of double-clicking to enlarge the viewport on the mobile terminal. I used a double tap to achieve it, but the experience is not good, sometimes not work. You must click once before double-clicking to be effective…
What steps can we follow to reproduce the bug?
in platform/viewer/src/components/ViewportGrid.tsx file
const onDoubleTab = (event) => {
onInteractionHandler(event);
commandsManager.run({
commandName: 'toggleOneUp',
commandOptions: {}
});
}
<ViewportPane
key={viewportId}
acceptDropsFor="displayset"
onDrop={onDropHandler.bind(null, viewportIndex)}
onInteraction={onInteractionHandler}
onTouchEnd={detectDoubleTapClosure(onDoubleTab)}
customStyle={{
position: 'absolute',
top: viewportY * 100 + 0.2 + '%',
left: viewportX * 100 + 0.2 + '%',
width: viewportWidth * 100 - 0.3 + '%',
height: viewportHeight * 100 - 0.3 + '%',
}}
isActive={isActive}
>