Skip to content

Commit

Permalink
Press on icon seems to also fallthrough to button. So, if get button
Browse files Browse the repository at this point in the history
press less than 100ms afer icon ignore.
  • Loading branch information
CDrummond committed Oct 19, 2024
1 parent 667cac1 commit af8d9a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MaterialSkin/HTML/material/html/js/bottomnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ Vue.component('lms-bottomnav', {
if (this.$store.state.visibleMenus.size>0) {
return;
}
if (undefined!=this.lastIcnPress && (new Date().getTime()-this.lastIcnPress)<100) {
return;
}
this.lastIcnPress = undefined;
this.tabPressed(this.items[idx].page, false)
},
icnPressed(longPress, el, ev) {
Expand All @@ -78,6 +82,7 @@ Vue.component('lms-bottomnav', {
if (idx<0 || idx>this.items.length) {
return;
}
this.lastIcnPress = new Date().getTime();
this.tabPressed(this.items[idx].page, longPress)
},
tabPressed(page, longPress) {
Expand Down

0 comments on commit af8d9a9

Please sign in to comment.