Code Monkey home page Code Monkey logo

Comments (10)

christophery avatar christophery commented on May 13, 2024

(1) Just add the following to the .pushy CSS class:

overflow: auto;
-webkit-overflow-scrolling: touch;

This will add scroll bars to the menu when the menu is longer than the page.

I would also recommend adding height: 100%; to your html,body css class as-well. This seems to fix the focus scrolling in Safari (OS X).

And if you want to take it even further, you can style the scroll bars so they appear in OS X Mountain Lion (since they are invisible by default):

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(156, 156, 156, .5);
}

(2) I wasn't able to recreate this issue on my machine with Safari (OS X)

Thanks for trying Pushy and I hope this helps!

from pushy.

casimirlancaster avatar casimirlancaster commented on May 13, 2024

Chris,

Thanks for the recommendations. I love the simplicity of your code and menu. The latest 0.9.1 build fixed the issue!

from pushy.

christophery avatar christophery commented on May 13, 2024

Glad I could help! Feel free to let me know (twitter.com/cmyee) if you use Pushy on any of your sites, I would love to see how other people use it!

from pushy.

casimirlancaster avatar casimirlancaster commented on May 13, 2024

I'll be sure to send you our website once it's finished! By the way, I noticed that when I add a URL to a menu link, the menu does not close when I click on the link.

Any recommendations on how to get the menu to close after a link has been clicked?

from pushy.

christophery avatar christophery commented on May 13, 2024

Pushy should close when a link is clicked either in the menu itself or in the #container div. I've tested with hash links & external links inside of the menu and it seems to work as intended.

When the menu is open, a "site-overlay" div should cover the body. So if the user clicks anywhere on the #container div, the menu will close.

I can't seem to reproduce the issue as described, seems to be working as intended on my machine.

from pushy.

casimirlancaster avatar casimirlancaster commented on May 13, 2024

I understand that hash links and external links close the menu. However, for some reason relative links and absolute links don't close the menu.

For example, the following relative link does not close the menu:

<li><a href="page.html"></li>

Nor does the following absolute link:

<li><a href="http://www.website.com/page.html"></li>

from pushy.

christophery avatar christophery commented on May 13, 2024

Seems to work as intended in Chrome 30 & Firefox. It also seems to work fine in Safari, although I do notice that the animation for the menu closing doesn't happen when link is clicked. Although it does appear to close the menu, either the animation isn't happening or it's happening too quickly on my Mac (Safari).

from pushy.

casimirlancaster avatar casimirlancaster commented on May 13, 2024

Yes, I do notice that it works in Chrome. In Firefox, the animation is much faster and less smooth than a hash link animation. In Safari, the animation appears to not occur at all.

Any recommendations on how to show the animation in Safari and slow it down in Firefox?

from pushy.

unbreakablesense avatar unbreakablesense commented on May 13, 2024

I know that this is an old thread, but I just stumbled across your menu and love it. I'm beta testing my site right now and one person told me that the menu will be cutoff and unscrollable about 20% of the time on their iPhone6. I haven't had the opportunity to check on it myself, as I don't have an iPhone 6. No one else has reported this issue to me. Is this a known bug?

from pushy.

joesayegh avatar joesayegh commented on May 13, 2024

I love this menu, but I'm having the same problem as @unbreakablesense.

  1. Open the demo page on an iPhone 6
  2. Rotate your phone so that's in landscape mode
  3. Now click the Menu button to reveal the Pushy menu
  4. Click Submenu 3 to reveal the submenu links
  5. If you try and scroll down on the Pushy menu now, you won't be able to view the links at the bottom.

I realise this is an old threat but I'm desperate to get this fixed.
Has anyone managed to get this fixed yet?
If so can you please provide the solution?

from pushy.

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.