Code Monkey home page Code Monkey logo

Comments (12)

uxdedotnet avatar uxdedotnet commented on August 29, 2024

My website is: http://www.uxde.net/test/codilight/

from superfish.

stevengliebe avatar stevengliebe commented on August 29, 2024

I notice what might be the same issue on the demo. With iOS go to http://users.tpg.com.au/j_birch/plugins/superfish/ > Examples > Basic and touch to open the first dropdown. Now touch on the blue header. The menu does not close when you touch there, but it closes if you touch anywhere else. Same issue?

I am also experiencing something similar with my own design. On iOS the opened menu will not close no matter where I touch, unless it's a text input (as with @uxdedotnet's demo) and in my case one very specific unlinked image. Nothing else triggers the close for some reason.

I hope this sheds some light because I haven't been able to figure out why this sort of thing happens.

from superfish.

stevengliebe avatar stevengliebe commented on August 29, 2024

Here's a fiddle that shows the issue in a very basic way. It's based on code from the demo.

http://jsfiddle.net/bVvu5/4/embedded/result/

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

Thanks for the examples. I'm aware of this issue.The cause is the non-standard way Apple has attempted to simulate ':hover' without also simulating unhover. I have various fixes, one of which I will decide upon and release soon. I'm busy over the next day or so, but it will be out as soon as possible.

from superfish.

stevengliebe avatar stevengliebe commented on August 29, 2024

Thank you, that's good to hear.

from superfish.

uxdedotnet avatar uxdedotnet commented on August 29, 2024

Thanks Joeld and Steven :)

from superfish.

jsgalloo avatar jsgalloo commented on August 29, 2024

At the present time, i added this to permit closing sub menu:

var isiOS = navigator.userAgent.match(/iPad|iPhone|iPod/i) != null;

            if (isiOS) 
            {
                $(document).on('click touchend', function () {
                        $('ul.sf-menu').hideSuperfishUl();
                });

                $(".sf-menu").click(function(e){
                        e.stopPropagation();
                });
            }

but we can see the highlight of the click in document. It works but it is a trick

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

Thanks. I've got something similar to this in the upcoming v1.6.0. I may also add some CSS to hide the click highlight.

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

You can find fixes for this in v1.6.0. The hover state is also reset properly after using the iOS back button, which was another iOS problem.

from superfish.

jsgalloo avatar jsgalloo commented on August 29, 2024

Thanks very much,
i confirm it work on iOS (iPhone, iPad).

from superfish.

stevengliebe avatar stevengliebe commented on August 29, 2024

Thank you for this update. Works very nicely on iOS now.

from superfish.

atatos avatar atatos commented on August 29, 2024

Nice solution, Thanks @jsgalloo

from superfish.

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.