Fix swipe behavior on firefox when clicking on palette selection input (#1631)

* Fix swipe behavior on firefox when clicking on palette selection input

When clicking on the palette select element on firefox, it would often swipe to the next tab due to a bug in firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1410816

* Update UI .h files and remove console log
This commit is contained in:
Christophe Gagnier 2021-01-08 10:49:56 -05:00 committed by GitHub
parent 0df6826c91
commit df51b80e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 36 deletions

View File

@ -1334,10 +1334,13 @@ function lock(e) {
function move(e) {
if(!locked || pcMode) return;
var dx = unify(e).clientX - x0, s = Math.sign(dx),
f = +(s*dx/w).toFixed(2);
var clientX = unify(e).clientX;
var dx = clientX - x0;
var s = Math.sign(dx);
var f = +(s*dx/w).toFixed(2);
if((iSlide > 0 || s < 0) && (iSlide < N - 1 || s > 0) &&
if((clientX != 0) &&
(iSlide > 0 || s < 0) && (iSlide < N - 1 || s > 0) &&
f > 0.12 &&
d.getElementsByClassName("tabcontent")[iSlide].scrollTop == scrollS) {
_C.style.setProperty('--i', iSlide -= s);

View File

@ -364,10 +364,10 @@ HTTP traffic is unencrypted. An attacker in the same network can intercept form
</button><br>Enable ArduinoOTA: <input type="checkbox" name="AO"><br><h3>About
</h3><a href="https://github.com/Aircoookie/WLED/" target="_blank">WLED</a>
version 0.11.1<br><br><a
href="https://github.com/Aircoookie/WLED/wiki/Contributors-&-About"
href="https://github.com/Aircoookie/WLED/wiki/Contributors-and-credits"
target="_blank">Contributors, dependencies and special thanks</a><br>
A huge thank you to everyone who helped me create WLED!<br><br>
(c) 2016-2020 Christian Schwinne<br><i>Licensed under the <a
(c) 2016-2021 Christian Schwinne<br><i>Licensed under the <a
href="https://github.com/Aircoookie/WLED/blob/master/LICENSE" target="_blank">
MIT license</a></i><br><br>Server message: <span class="sip">Response error!
</span><hr><button type="button" onclick="B()">Back</button><button

View File

@ -7,7 +7,7 @@
*/
// Autogenerated from wled00/data/index.htm, do not edit!!
const uint16_t PAGE_index_L = 32718;
const uint16_t PAGE_index_L = 32722;
const uint8_t PAGE_index[] PROGMEM = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0a, 0xcc, 0xbd, 0x69, 0x7b, 0xe2, 0x48,
0xb2, 0x28, 0xfc, 0xbd, 0x7e, 0x05, 0x45, 0x4d, 0x57, 0x43, 0x21, 0x40, 0xac, 0xc6, 0xb8, 0x68,
@ -2024,34 +2024,35 @@ const uint8_t PAGE_index[] PROGMEM = {
0x47, 0x18, 0x24, 0x08, 0x26, 0x53, 0x4e, 0x95, 0x0c, 0x8c, 0x9c, 0x4f, 0xec, 0xce, 0x18, 0x26,
0x13, 0x6e, 0xa3, 0x69, 0xda, 0xd7, 0x7c, 0x61, 0x6e, 0x0a, 0x7b, 0x81, 0x3d, 0x71, 0x44, 0x2c,
0xb9, 0x5c, 0xae, 0x6d, 0xab, 0x32, 0x27, 0x0c, 0x9b, 0x2d, 0xa6, 0x84, 0xe7, 0x38, 0x3e, 0x2e,
0x4d, 0x4d, 0xb9, 0xa7, 0xad, 0x47, 0x57, 0xc6, 0x8d, 0x20, 0x47, 0xf9, 0x19, 0xda, 0x9a, 0x9e,
0x58, 0xd1, 0xab, 0xac, 0xf3, 0x50, 0xb8, 0x43, 0xed, 0xd9, 0x03, 0x11, 0xe2, 0x64, 0xe8, 0x02,
0x56, 0xb8, 0x20, 0xcf, 0x12, 0x3c, 0xe1, 0xe2, 0x14, 0x12, 0xc8, 0xd5, 0x44, 0x3a, 0x6c, 0x77,
0x7b, 0xc7, 0xc7, 0xdf, 0x3a, 0x64, 0xd8, 0xb3, 0x7c, 0xd2, 0xa0, 0xea, 0xbd, 0x41, 0x52, 0x5a,
0x5e, 0x84, 0x1d, 0xed, 0xb6, 0xd2, 0x72, 0xb4, 0x14, 0x11, 0x44, 0xa5, 0x39, 0xd0, 0x0a, 0x9c,
0x3d, 0xa9, 0x7d, 0xe8, 0xfc, 0x76, 0xa1, 0x22,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