1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5660 from ConnorS1110/fix-firefox-multiselect

Fixed being unable to properly long press on cards to multiselect on Firefox
This commit is contained in:
Bill Thornton 2024-06-05 13:32:02 -04:00 committed by GitHub
commit 5680c18ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,9 +99,7 @@ function showSelection(item, isChecked) {
parent.appendChild(itemSelectionPanel); parent.appendChild(itemSelectionPanel);
let cssClass = 'chkItemSelect'; let cssClass = 'chkItemSelect';
if (isChecked && !browser.firefox) { if (isChecked) {
// In firefox, the initial tap hold doesnt' get treated as a click
// In other browsers it does, so we need to make sure that initial click is ignored
cssClass += ' checkedInitial'; cssClass += ' checkedInitial';
} }
const checkedAttribute = isChecked ? ' checked' : ''; const checkedAttribute = isChecked ? ' checked' : '';