diff --git a/src/web/App.mjs b/src/web/App.mjs index 72973d9c..7e2970a2 100755 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -836,6 +836,7 @@ class App { setMobileUI() { this.setSplitter(false); this.assignAvailableHeight(); + $("[data-toggle=tooltip]").tooltip("disable"); } /** diff --git a/src/web/TODO.md b/src/web/TODO.md index 9b06e018..10182493 100644 --- a/src/web/TODO.md +++ b/src/web/TODO.md @@ -1,8 +1 @@ -operations: -- UI tests etc. - -manual testing issues: - -Recipe; -- some reordering in recipe is not super smooth ( when the recipe-li is very large for instance ) -- double click deleting c-recipe-li not reliable +- UI tests diff --git a/src/web/components/c-recipe-li.mjs b/src/web/components/c-recipe-li.mjs index 676dd01e..8b232695 100644 --- a/src/web/components/c-recipe-li.mjs +++ b/src/web/components/c-recipe-li.mjs @@ -48,6 +48,18 @@ export class CRecipeLi extends HTMLElement { this.removeEventListener("dblclick", this.handleDoubleClick.bind(this)); } + /** + * Handle double click + * + * @param {Event} e + */ + handleDoubleClick(e) { + // do not remove if icons or form elements are double-clicked + if (e.target === this.querySelector("li") || e.target === this.querySelector("div.op-title")) { + this.removeOperation(); + } + } + /** * Handle mousedown * @fires Manager#statechange @@ -87,18 +99,6 @@ export class CRecipeLi extends HTMLElement { } } - /** - * Handle double click - * - * @param {Event} e - */ - handleDoubleClick(e) { - // do not remove if icons or form elements are double-clicked - if (e.target === this.querySelector("li") || e.target === this.querySelector("div.op-title")) { - this.removeOperation(); - } - } - /** * Remove this operation from the recipe list *