Browse Source

phantomjs hack

Adam Shaw 10 năm trước cách đây
mục cha
commit
d096ba03e1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/main.js

+ 2 - 1
src/main.js

@@ -6,7 +6,8 @@ var FC = $.fullCalendar = {
 var fcViews = FC.views = {};
 
 
-FC.isTouchEnabled = 'ontouchstart' in document;
+FC.isTouchEnabled = ('ontouchstart' in document) &&
+	!window.__karma__; // workaround for phantomjs falsely reporting touch
 
 
 $.fn.fullCalendar = function(options) {