olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.46k stars 798 forks source link

cellTap not working on low width cells in Chromium based browsers #3588

Closed H3le closed 2 years ago

H3le commented 2 years ago

Describe the bug On Chromium based browsers, cellTap event is not being triggered on touch devices for columns with width ~< 40px. Gecko based browsers are responding as expected. That looks like as in Chromium based browsers something is overlaying the listener holder or the object has width/height equals to 0.

Reported behavior has been reproduced in multiple browsers with multiple touch screens wired to different comuters:

Tabulator Info

Working Example Working example

To Reproduce

  1. Load the linked fiddle in any Gecko based browser
  2. On touch monitor, tap the two X columns and look to the console: everything is working as expected
  3. Now load the same page in any Chromium based browser
  4. On touch monitor, tap the two X columns and look to the console: the bigger one is firing the event, the smaller one doesn't.

Expected behavior On touch screens, X browser, cellTap should be called whenever a finger taps the table cell exactly as cellClick act when a click on the cell is performed.

Desktop (please complete the following information):

olifolkerd commented 2 years ago

Hey @H3le

This is happening because you have resizable columns enabled on your table. In columns that small the invisible resize handles take up most of the cells width meaning that the tap events are captured by the resize handles not the cell itself.

In this case i would recommend that you disable resizable columns.

That should fix your issue.

Cheers

Oli :)