lime icon indicating copy to clipboard operation
lime copied to clipboard

Do not simulate a mouse event on primary touch point events

Open jgranick opened this issue 7 years ago • 1 comments

Instead of simulating mouse events on primary touch events, Lime should dispatch these events separately, and allow developers to handle both cases distinctly.

If we wish to have a unified mouse/touch event interface, we could consider a pointer event, to help make this more clear

jgranick avatar May 31 '17 22:05 jgranick

Problem is, lots of devs will have programmed their buttons to respond only to mouse events. After all, mouse events work consistently across devices.

Pointer events sound fine, but I still don't see the benefit. Why do these cases need to be handled distinctly? Is it really that important to distinguish between a mouse and a touchscreen? It's incredibly rare for both devices to be in use at once. (And if it's that important, the programmer can still tell the difference: one device dispatches two events, the other dispatches one.)

player-03 avatar Oct 28 '21 08:10 player-03