TableDnD icon indicating copy to clipboard operation
TableDnD copied to clipboard

Laptop with touch screen cannot use mouse

Open silverhawk184 opened this issue 10 years ago • 2 comments

Hello,

I have a laptop with a touchscreen, and cannot use the mouse to sort the tables.

I am getting by by setting hasTouch = false in the js file until it can be fixed.

silverhawk184 avatar Jan 17 '14 20:01 silverhawk184

@silverhawk184 This is indeed a catch22 and will likely remain for as long as touch('ontouchstart' in document.documentElement) and pointer(default) are separate events on the dom.

Because your particular device has the unique capabilities of both touch and pointer we need to choose.

My suggestion would also be that you change hasTouch but this effectively disables touch functionality on all devices.

Another option, which requires some research and testing, may be to test for 'onmousemove' as well if this option is disabled in the dom if no mouse is present( or some similar check ) and we configure a default navigation.

The use case would be something like:

  • choose navigation device for tableDnD
    • detect touch
      • select touch device
    • cannot detect touch
      • select pointer
    • detect both pointer and touch
      • select configured default navigation device

Unless you can see a way that we can use both simultaneously I fear this issue will remain a problem due to the restrictions imposed by the browser implementation.

nickl- avatar Jan 20 '14 09:01 nickl-

This issue can be closed I think due to https://github.com/isocra/TableDnD/pull/44 being merged.

brendon avatar Jul 23 '16 10:07 brendon