File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -592,6 +592,9 @@ class FastSearchCard extends HTMLElement {
592592 opacity: 0;
593593 flex-shrink: 0;
594594 transition: all 0.2s ease;
595+ touch-action: manipulation;
596+ -webkit-tap-highlight-color: transparent;
597+ user-select: none;
595598 }
596599
597600 .clear-button.visible {
@@ -4187,7 +4190,19 @@ class FastSearchCard extends HTMLElement {
41874190 searchInput.addEventListener('keydown', (e) => this.handleSearchKeydown(e));
41884191 searchInput.addEventListener('focus', () => this.handleSearchFocus());
41894192 searchInput.addEventListener('blur', () => this.clearSuggestion());
4190- clearButton.addEventListener('click', (e) => { e.stopPropagation(); this.clearSearch(); });
4193+
4194+ // Touch-Events für Mobile hinzufügen
4195+ clearButton.addEventListener('click', (e) => {
4196+ e.stopPropagation();
4197+ e.preventDefault();
4198+ this.clearSearch();
4199+ });
4200+ clearButton.addEventListener('touchend', (e) => {
4201+ e.stopPropagation();
4202+ e.preventDefault();
4203+ this.clearSearch();
4204+ });
4205+
41914206 categoryIcon.addEventListener('click', (e) => { e.stopPropagation(); this.toggleCategoryButtons(); });
41924207 categoryButtons.forEach(button => {
41934208 button.addEventListener('click', (e) => { e.stopPropagation(); this.handleCategorySelect(button); });
You can’t perform that action at this time.
0 commit comments