navigator.pointerEnabled is deprecated

replace test with window.PointerEvent