blivesta / drawer

Flexible drawer menu using jQuery, iScroll and CSS.
http://git.blivesta.com/drawer
MIT License
623 stars 176 forks source link

Drawer menu is hidden immediately in iOS 11.3 #48

Open koogawa opened 6 years ago

koogawa commented 6 years ago

env: iOS 11.3 beta 6

  1. Open the drawer menu in Safari
  2. Scroll the drawer menu (address bar will be resized)
  3. The drawer menu will be hidden immediately.

demo

koogawa commented 6 years ago

workarounds:

$drawer.drawer({
    iscroll: {
        preventDefault: true,
        click: true,
    },
});
blivesta commented 6 years ago

You can disable the resize event of the drawer.

$(window).off('resize.drawer');

But it seems necessary to update this plugin as well.

kcray commented 6 years ago

@koogawa fix worked for me. Thank you

ierika commented 6 years ago

The solution suggested by @koogawa solved it for me too. But don't forget to add mouseWheel: true to the iscroll properties, just to make sure it scrolls on desktop.