Comments (9)
I went ahead and added some more links to the fiddle, because there is also an issue with their states when pressing them. Tapping the link buttons trigger the event but they state of the button stays gray unless you press them a little longer leaving them stuck in hover highlight state.
from fastclick.
This is complicated. jQuery UI applies a lot of listeners (mousedown
, mouseup
, mouseenter
, mouseleave
, ...) which don't play very well with FastClick, which makes a fix in FastClick difficult. And these events seem so tied in to the way jQuery UI works that I don't have much hope of a fix being made at that end. It's a bit frustrating that jQuery UI is so complex compared to Bootstrap, when both achieve the same thing. At the same time I don't want to brush off this issue because jQuery UI is still such a popular library.
from fastclick.
Hi,
I am new to this and my fix may be very stupid but it works.
here is the tweak.
FastButton.prototype.onTouchStart = function(event) {
this.focus();
}
I am not aware of the complexity and other drawbacks it might have created, but did a bit of testing of my app and it works.
from fastclick.
Makes sense, I will test it out.
from fastclick.
@tablatronix It's something iOS-specific, because of your fiddle works correctly in Android stock browser.
from fastclick.
It is not. Also there are issues in desktop browsers namely focus issues.
from fastclick.
@lakshmig do you have a fiddle of this fix, also your code seems to be messed up and not in code tags.
from fastclick.
No longer able to replicate on iOS 6.1.
from fastclick.
Thanks, I am on ipad 1, stuck on safari 5. Good to know.
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.