This example also demonstrates how to implement a custom interaction that inherits from ol.interaction.Pointer.