JoanClaret / slide-and-swipe-menu

:zap: A sliding swipe menu that works with touchSwipe library.
http://joanclaret.github.io/slide-and-swipe-menu
139 stars 47 forks source link

Menu is open on loading site on Androide standard browser. #2

Closed Sandbakk closed 8 years ago

Sandbakk commented 8 years ago

The menu is already open on loading site in the standard browser on Android 5. This is both on the plugin page and the demo page. It works perfect in other browsers on the same device.

JoanClaret commented 8 years ago

Hi does it move by swipe?

sholoma commented 8 years ago

Yes, it moves. I confirm, it is opened in default android browser (tested android 5 and 4.4)

JoanClaret commented 8 years ago

@Sandbakk @sholoma did you try to add vendor prefixes to nav's default state? this should fix it.

https://github.com/JoanClaret/slide-and-swipe-menu/blob/master/demo/css/slide-and-swipe-menu.css#L14

nav {
  -webkit-transform: translate(-280px,0);
  -moz-transform:    translate(-280px,0);
  -ms-transform:     translate(-280px,0);
  -o-transform:      translate(-280px,0);
  transform:         translate(-280px,0);
}