Guest User

Untitled

a guest
Nov 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. !function($) {
  2.  
  3. $(function () {
  4. "use strict";
  5.  
  6. $.support.pointerEvents = (function() {
  7. var dummy = document.createElement('_'),
  8. support = ("pointerEvents" in dummy.style);
  9.  
  10. if (!support) return false;
  11.  
  12. dummy.style.pointerEvents = 'auto';
  13. dummy.style.pointerEvents = 'x';
  14.  
  15. // Some browsers say they support pointer events but they don't. ie. Opera.
  16. document.body.appendChild(dummy);
  17. support = getComputedStyle(dummy).pointerEvents === 'auto';
  18. document.body.removeChild(dummy);
  19. return support;
  20.  
  21. })();
  22. });
  23.  
  24. }(window.jQuery);
Add Comment
Please, Sign In to add comment