mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed issue with Offcanvas that on Touch devices would cause the Offcanvas to close while touch-scrolling (fixes #1447)
This commit is contained in:
@@ -74,7 +74,7 @@ var Menu = new prime({
|
||||
}
|
||||
|
||||
body.delegate('click', ':not(' + selectors.mainContainer + ') ' + selectors.linkedParent + ', .g-fullwidth .g-sublevel ' + selectors.linkedParent, this.bound('click'));
|
||||
body.delegate(hasTouchEvents ? 'touchend' : 'click', ':not(' + selectors.mainContainer + ') a[href]', this.bound('resetAfterClick'));
|
||||
body.delegate('click', ':not(' + selectors.mainContainer + ') a[href]', this.bound('resetAfterClick'));
|
||||
|
||||
if (hasTouchEvents || !this.hoverExpand) {
|
||||
var linkedParent = $(selectors.linkedParent);
|
||||
|
||||
Reference in New Issue
Block a user