[devdocsgjs/main: 51/239] Remove FastClick library




commit 61ab7f6cecd28ad6f745148cd34e42002dedae18
Author: Simon Legner <Simon Legner gmail com>
Date:   Sun Dec 5 22:12:39 2021 +0100

    Remove FastClick library
    
    From https://github.com/ftlabs/fastclick/blob/main/README.md
    > Note: As of late 2015 most mobile browsers - notably Chrome and Safari - no longer have a 300ms touch 
delay, so fastclick offers no benefit on newer browsers, and risks introducing bugs into your application. 
Consider carefully whether you really need to use it.

 assets/javascripts/vendor/fastclick.js        | 841 --------------------------
 assets/javascripts/views/layout/mobile.coffee |   2 -
 2 files changed, 843 deletions(-)
---
diff --git a/assets/javascripts/views/layout/mobile.coffee b/assets/javascripts/views/layout/mobile.coffee
index 77c5ee73..1fd5e285 100644
--- a/assets/javascripts/views/layout/mobile.coffee
+++ b/assets/javascripts/views/layout/mobile.coffee
@@ -38,8 +38,6 @@ class app.views.Mobile extends app.View
     super
 
   init: ->
-    window.FastClick?.attach @body
-
     $.on $('._search'), 'touchend', @onTapSearch
 
     @toggleSidebar = $('button[data-toggle-sidebar]')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]