I want to listen to pointermove
event on IE11, but it seems that pointermove
only fires for mouse (and possibly pen), but not when you are using your finger.
Actually, the specification says that it fires for pens/mice, so this may not be really a bug.
But, is there any way to listen to pointermove on IE for touch? There must be, but I was very surprised to see pointermove
not firing at all.
EDIT: I found that if I put CSS touch-action: none
on the div, pointermove events fire. But why? I'm trying to find documents related to this, but I couldn't find any so far.
EDIT: I learend that the touch-action
CSS specifies which touch actions are handled by the browser. This means setting touch-action
to none
tells the browser to not handle any touch events, and the developer is responsible for controlling the behaviour throutgh JavaScript events. This is why I was getting the events fired properly only when I had the CSS. (See more at MDN.)