Open
Description
When use onUpdate the big problem with read any X and Y of selection.
After selection using useState - setTempXandY reset the zoom in, state.
How to solve the the reseting the zoom in, after XXXX seconds?
onUpdate={(EvEnT) => tempUpDaTe(EvEnT)}
const tempUpDaTe= (EvEnT: any) => {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
setTempXandY(prevState => ({
...prevState,
x: e.layout.xaxis.range[0],
y: e.layout.yaxis.range[0]
}));
}, 5500);
};
Metadata
Metadata
Assignees
Labels
No labels