Fixed issue with Offcanvas that on Touch devices would cause the Offcanvas to close while touch-scrolling (fixes #1447)

This commit is contained in:
Djamil Legato
2016-07-15 16:15:05 -07:00
parent 585ecf6030
commit 8a3572ddef
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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);