mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Added working drag, fixed scrolling on drag, fixed cordova example
This commit is contained in:
@ -6,10 +6,11 @@
|
||||
isPanelOpen;
|
||||
|
||||
function onTap(e) {
|
||||
var el = e.target;
|
||||
return togglePanel(e, el, el.dataset.togglePanel);
|
||||
|
||||
if(e.target) {
|
||||
el = e.target;
|
||||
if(el.dataset.togglePanel) {
|
||||
return togglePanel(e, el, el.dataset.togglePanel);
|
||||
}
|
||||
while(el.parentElement) {
|
||||
el = el.parentElement;
|
||||
@ -50,6 +51,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
framework.on("click", onTap);
|
||||
framework.onGesture("tap", onTap, document.getElementById('open-panel'));
|
||||
|
||||
})(this, document, FM = this.FM || {});
|
||||
|
||||
Reference in New Issue
Block a user