Using PointerEvents on browsers that support it

This commit is contained in:
Francisco Hodge
2019-03-07 07:32:07 -05:00
parent 47ddf0b1e8
commit 5ab58f2528
2 changed files with 66 additions and 13 deletions
+7
View File
@@ -372,6 +372,13 @@ class Utilities {
return "ontouchstart" in window || navigator.maxTouchPoints;
}
/**
* Determines whether pointer events are supported
*/
pointerEventsSupported() {
return window.PointerEvent;
}
/**
* Bind all methods in a given class
*/