mirror of
https://github.com/s00500/ESPUI.git
synced 2026-02-05 17:02:41 +00:00
Fix #337 : tabbed content issue on mobile
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
3
data/js/controls.js
vendored
3
data/js/controls.js
vendored
@@ -481,9 +481,10 @@ function start() {
|
||||
$("#tabscontent").append("<div id='tab" + data.id + "'></div>");
|
||||
|
||||
// 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({
|
||||
touchend: function(e) {
|
||||
e.preventDefault();
|
||||
tabclick(data.id);
|
||||
},
|
||||
mouseup: function(e) {
|
||||
|
||||
Reference in New Issue
Block a user