Dogfalo / materialize

Materialize, a CSS Framework based on Material Design
https://materializecss.com
MIT License
38.86k stars 4.74k forks source link

Side nav lag when adding two buttons for it #1475

Closed KhaledElAnsari closed 7 years ago

KhaledElAnsari commented 9 years ago

Hello

I've added to collapse buttons for the same side-nav, it works will on one page but the other one needs to be tapped twice to call the side-nav! anybody faced this problem?

acburst commented 9 years ago

Please attach codepen

chrisxue815 commented 9 years ago

I had the same problem even there's only one button. I fixed it by removing the click delay using FastClick (https://github.com/ftlabs/fastclick)

KhaledElAnsari commented 9 years ago

@acburst I copied the main elements of the side-nav in my project, it works fine at the beginning then it doesn't!! I might try @chrisxue815 way maybe it will help

here's the fiddle: http://jsfiddle.net/f6k6xruc/

KhaledElAnsari commented 9 years ago

@chrisxue815 it didn't work bro :\

acburst commented 9 years ago

It looks to be a bug with the waves effect. Try removing the waves effect from the button and it should be fine

tomscholz commented 7 years ago

Closed due inactivity. Feel free to reopen it, if it's still necessary.