Coder Social home page Coder Social logo

jqueryui buttons issue about fastclick HOT 9 CLOSED

ftlabs avatar ftlabs commented on July 24, 2024
jqueryui buttons issue

from fastclick.

Comments (9)

tablatronix avatar tablatronix commented on July 24, 2024

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.

mattcg avatar mattcg commented on July 24, 2024

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.

lakshmig avatar lakshmig commented on July 24, 2024

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.

tablatronix avatar tablatronix commented on July 24, 2024

Makes sense, I will test it out.

from fastclick.

dryabov avatar dryabov commented on July 24, 2024

@tablatronix It's something iOS-specific, because of your fiddle works correctly in Android stock browser.

from fastclick.

tablatronix avatar tablatronix commented on July 24, 2024

It is not. Also there are issues in desktop browsers namely focus issues.

from fastclick.

tablatronix avatar tablatronix commented on July 24, 2024

@lakshmig do you have a fiddle of this fix, also your code seems to be messed up and not in code tags.

from fastclick.

mattcg avatar mattcg commented on July 24, 2024

No longer able to replicate on iOS 6.1.

from fastclick.

tablatronix avatar tablatronix commented on July 24, 2024

Thanks, I am on ipad 1, stuck on safari 5. Good to know.

from fastclick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.