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:
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>");
|
$("#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
Reference in New Issue
Block a user