The plugin is assuming either mouse our touch events handling here.
This is problematic in the case of computers having touchscreen (either external or built-in).
Instead of opting one or the other, touch events should be subscribed additionally to the mouse events if they're supported.