TableDnD
TableDnD copied to clipboard
Laptop with touch screen cannot use mouse
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 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
- detect touch
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.
This issue can be closed I think due to https://github.com/isocra/TableDnD/pull/44 being merged.