1
0
mirror of https://github.com/s00500/ESPUI.git synced 2026-02-05 22:12:40 +00:00

Fix #337 : tabbed content issue on mobile

Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
2026-01-28 09:25:24 +01:00
parent b7f18f9e2a
commit 458e21861d
2 changed files with 4 additions and 139 deletions

3
data/js/controls.js vendored
View File

@@ -481,9 +481,10 @@ function start() {
$("#tabscontent").append("<div id='tab" + data.id + "'></div>"); $("#tabscontent").append("<div id='tab" + data.id + "'></div>");
// Add touch and click handlers for tab // Add touch and click handlers for tab
// Note: Do NOT use e.preventDefault() in touchend - it blocks the click
// event which tabbedcontent.js needs to actually switch tabs
$("#tablink" + data.id).on({ $("#tablink" + data.id).on({
touchend: function(e) { touchend: function(e) {
e.preventDefault();
tabclick(data.id); tabclick(data.id);
}, },
mouseup: function(e) { mouseup: function(e) {

File diff suppressed because one or more lines are too long