#1389: add support for pointer events