Comments (10)
(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.
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.
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.
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.
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.
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.
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.
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.
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.
I love this menu, but I'm having the same problem as @unbreakablesense.
- Open the demo page on an iPhone 6
- Rotate your phone so that's in landscape mode
- Now click the Menu button to reveal the Pushy menu
- Click Submenu 3 to reveal the submenu links
- 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)
- Pushy in NPM packages. HOT 2
- Menu don't work with vue js 2 HOT 1
- iOS Mobile Container Scrolling Bug
- Third level submenu HOT 1
- Menu transitions on page load HOT 2
- Can width be set to 100% HOT 2
- Can I have a left menu and right menu? HOT 1
- Rearrange menu items for desktop HOT 3
- Fit Pushy for container width. HOT 1
- How can we stop the container scroll going to top, while we are opening Pushy-Menu HOT 1
- sidebar incompatible with jquery 3.1.1 HOT 1
- BS4 Dropdown Class for On-Canvas Multi-Line Menu HOT 1
- Change menu-btn class HOT 6
- Error don't appear the pushy menu HOT 1
- Desktop: Close '.pushy ul ul ' when clicking away from element
- Menu shows when loading page HOT 1
- Mobile Site Menu is not loading properly HOT 2
- Save a network request by encoding the arrow svg in the css instead of externally linking it HOT 1
- How to focus on a li tag within a submenu? HOT 3
- Multiple Pushy in one page
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 pushy.