dojo / dojox

Dojo 1 - extras library. Please submit bugs to https://bugs.dojotoolkit.org/
https://dojotoolkit.org/
Other
151 stars 229 forks source link

dojox/grid/DataGrid: Cannot double-click row when scrolled in Chrome #290

Closed janschatz closed 6 years ago

janschatz commented 6 years ago

If you have a large DataGrid and you have scrolled down, it is impossible to double-click a certain row in Google Chrome, if that row is not in the center of the viewport. When the grid recognised the first click, it focuses the corresponding cell, which centers it inside the viewport so the second click will hit another row and the double-click event will be fired for the second row. I have prepared a fiddle demonstrating the problem. It shows a grid with 100 rows and autoheight attribute enabled. If you e.g. scroll down so that row 50 is shown on the lower end of the viewport and try to double-click it, you will end up double-clicking e.g. row 65. The problem does not show in Firefox. I could trace down the scrolling to this code line. It's executed only for Webkit browsers.

janschatz commented 6 years ago

Can someone update the state of the corresponding ticket on bugs.dojotoolkit.org?