google / marzipano

A 360° media viewer for the modern web.
http://www.marzipano.net
Apache License 2.0
1.96k stars 992 forks source link

Chrome 55 PointerEvents break panning #61

Open ErikNijland opened 7 years ago

ErikNijland commented 7 years ago

The demo's on Marzipano.net like http://www.marzipano.net/demos/cube-single-res/index.html don't work on Chrome 55 on OSX with touch input.

This is probably caused by Chrome enabling PointerEvents (https://developer.mozilla.org/en/docs/Web/CSS/pointer-events). There already is a bug report at the Hammer.JS project: https://github.com/hammerjs/hammer.js/issues/1056.

tjgq commented 7 years ago

Can you clarify what you mean by "touch input"? The demos work fine for me when panning around using the touchpad (I'm using Chrome 55 on a Macbook Pro).

ErikNijland commented 7 years ago

The device used is a Wacom Bamboo (http://bamboo.wacom.com/).

Please see this demo: https://jsfiddle.net/q8dpdaL4/2/

The device is firing pointerdown events but not touchstart events. The click event happens when the pen is released from the touchpad (after moving).

Marzipano has code that says touch-action: none.

Relevant read: https://developers.google.com/web/updates/2016/10/pointer-events#default_actions.

"Setting it to none on an element will disable all browser-defined actions started over that element."

tjgq commented 5 years ago

Since touchpads are an uncommon use case, this will likely not get fixed unless someone contributes a patch.