LOGC#89746 mouseover -> touchstart, en highlight styling verbeterd

svn path=/Website/branches/v2025.2/; revision=69916
This commit is contained in:
2025-08-05 12:02:08 +00:00
parent 875aab5b84
commit c668edb059
2 changed files with 11 additions and 5 deletions

View File

@@ -916,6 +916,11 @@ div.suggestklikker {
flex-wrap: wrap;
justify-content: flex-end;
}
.sgDropdown .dropdown-item.selected { /* = bootstrap active style */
color: var(--bs-dropdown-link-active-color);
text-decoration: none;
background-color: var(--bs-dropdown-link-active-bg);
}
.sgText /* Suggest Regel Tekst */
{

View File

@@ -1024,12 +1024,13 @@ async function _Suggest(inParams) {
}
}
xDiv.onmouseover = function() { highlight(this.sgIndex, this); return false; };
if (isMobile) {
xDiv.ontouchstart = function() { highlight(this.sgIndex); };
} else {
xDiv.onmouseover = function() { highlight(this.sgIndex); };
}
xDiv.onmousedown = function() {
if (isMobile)
{
highlight(this.sgIndex, this); // omdat mobile/bootstrap de onmouseover niet lijkt te doen en daarmee 'selected' niet is gezet
}
setValues(true);
hideAutocompleteDiv();
return true;