GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
The use-case is the following: the grid displays data that is being updated several times a second with data pushed by a server, not as a result of user interaction.
Most rows are invalidated on every update (though only portions of them have changed), hence most DOM elements are short-lived too. If the user clicks the mouse down before the update and then releases it up after the update, the DOM element under the mouse has changed and this is not registered as a mouse click, so no event is received, the active cell is not changed, etc. When the data is updated really often, the result is that most user clicks are missed and the grid seems unresponsive (despite the fact that display refreshes without problems and other parts of the webpage are responsive). Same problem applies to double-clicks (e.g. to trigger editing).
SlickGrid should probably listen for individual mouseDown/mouseUp events and match them together to generate click/doubleclick events.
(This is a dupe of an existing issue, need to find and link...)
Need to experiment with this. Sounds hacky, but may be doable.
This still seems to be a problem, I am currently struggling with the same problem. Are there already workarounds for this problem? If there would be mouseDown/mouseUp events I could build it myself: Store timestamp, and position on mousedown, compare them on mouseup with some tolerance and handle use this as click event.