Mouse events when inputMode is TOUCH_POINT.
It seems that some browsers send mouse events even if touch events are registered. Best solution for this problem is to discard mouse events if the inputMode is set to touch events.
After thinking about it this may be more complicated. What if the device supports mouse and touch at the same time (like those Windows 8 touch-desktop-devices). Therefore we can't just suppress mouse events when enabling touch input.
True. You might want to consider a new input mode: Mouse + Touch.
- Mouse mode: even touch events generate mouse events,
- Touch mode: mouse events generate touch events,
- Mouse and Touch mode: distinct events.
Yes that sounds like a good solution. Maybe we can combine HTML mouse, HTML touch and HTML pointer events to a common StageXL pointer event. Unfortunately the HTML pointer events are only available in IE but it looks like if this will be the future standard in all browsers.