WebUI: Improve table scrolling and selection on mobile

This PR improves touch interaction with table rows that have a context menu. Previously, those rows couldn't be selected or scrolled on mobile. Additionally, this PR modifies the context menu to appear when the user removes their finger/touch, rather than the current behavior of appearing mid-touch. This allows us to only display the context menu if the user's finger remains on the same element, which should significantly reduce erroneous context menu triggering.

Closes #19819.
Closes #19820,
Closes #19823.
PR #20639.
This commit is contained in:
Thomas Piccirello
2024-04-08 23:33:10 -07:00
committed by GitHub
parent 01cc4ea90b
commit e697d40382
4 changed files with 27 additions and 22 deletions

View File

@@ -775,7 +775,6 @@ window.qBittorrent.DynamicTable = (function() {
this._this.deselectAll();
this._this.selectRow(this.rowId);
}
return false;
});
tr.addEvent('keydown', function(event) {
switch (event.key) {