StageXL icon indicating copy to clipboard operation
StageXL copied to clipboard

Mouse events when inputMode is TOUCH_POINT.

Open bp74 opened this issue 11 years ago • 3 comments

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.

bp74 avatar Apr 30 '14 11:04 bp74

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.

bp74 avatar May 01 '14 06:05 bp74

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.

elsassph avatar May 01 '14 08:05 elsassph

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.

bp74 avatar May 01 '14 09:05 bp74