better support for mouse/pointer events