Comments (1)
What use case d'you have in mind?
If you add the needsclick
class to elements then FastClick won't send synthetic clicks to that element or cancel the real click.
Alternatively you could always override the FastClick#needsClick method with your own method. Something like this:
FastClick.prototype._needsClick = FastClick.prototype.needsClick;
FastClick.prototype.needsClick = function(target) {
var matchesSelector = HTMLElement.prototype.matchesSelector || HTMLElement.prototype.webkitMatchesSelector || HTMLElement.prototype.mozMatchesSelector || HTMLElement.prototype.msMatchesSelector;
if (matchesSelector.call(target, '.my, .list, .of-selectors-to, #ignore')) {
return true;
}
return FastClick.prototype._needsClick.call(this, target);
};
from fastclick.
Related Issues (20)
- $ (docment).on('click')这种写法反应特别慢
- 看图 HOT 2
- Mistake about the readme,the late 2015 browsers still have the 300ms problem HOT 1
- Logo design
- input type=file display:'none' class='needsclick'。input.click() won‘t work HOT 2
- ios下导致文本框聚焦困难 HOT 4
- Vue 引入fastclick后IOS的input聚焦延迟解决方案 HOT 8
- fastClick支持typescript吗 HOT 3
- use fastclick in vue project, audio cannot play correctly in ios HOT 2
- 移动端(准确来讲是ipad的webview)mouseup失效 HOT 2
- there is a problem with mouseup on ipad webview
- Android Chrome
- Add Note: Fastclick since iOS 9.3 not longer neccessary when using WKWebView HOT 5
- Delay can't be removed when using jQuery
- Issue when the class name is the same as a DOM content
- Fastclick makes elements inside shadow dom are unclickedable on IOS devices
- One click triggers two clicks HOT 2
- Fastclick on NuxtJS HOT 2
- Build script creates empty file
- <select> in PWA doesn't fire on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastclick.