Posted 14 April 2022, 7:28 am EST
Hi,
We are able to observe the issue at our end hence we have escalated this issue to the concerned team for further investigation. We will update you regarding this as we get any information from the team. The internal ID for this issue will be SJS-12660.
Till then, You may throttle the number of clicks on the spreadJS host and differentiate between click and double click by yourself. Please refer to the following code snippet and let me know if you face any issues.
var clicks = 0, delay = 600;
spread.getHost().addEventListener('mousedown', function (e) {
e.preventDefault();
clicks++;
setTimeout(() => {
var y = e.pageY - this.offsetTop;
var x = e.pageX - this.offsetLeft
var result = spread.hitTest(x, y);
var wInfo = result.worksheetHitInfo;
//if the click in inside the vievport
if (wInfo && wInfo.hitTestType === 3) {
let { row, col } = wInfo;
if (clicks === 2) {
console.log("double click happen on cell("+row+","+col+")");
} else if (clicks === 1) {
console.log("Single click happen on cell("+row+","+col+")")
}
}
clicks = 0;
return;
}, delay);
}, true);
sample: https://jscodemine.grapecity.com/share/utGdSSYDOEK_HEJbTZxa3w/
regards,
Avinash