topbar resize, font scaling fix, mobile slider fix

This commit is contained in:
RossAscends
2023-08-25 07:06:52 +09:00
parent c91ab3b5e0
commit ce5e706fac
6 changed files with 69 additions and 56 deletions

View File

@ -8042,28 +8042,27 @@ $(document).ready(function () {
var sliderTimer;
$("input[type='range']").on("touchstart", function () {
// Unlock the slider after 500ms
sliderTimer = setTimeout(function () {
// Unlock the slider after 300ms
setTimeout(function () {
sliderLocked = false;
}, 500);
$(this).css('background-color', 'var(--SmartThemeQuoteColor)');
}.bind(this), 300);
});
$("input[type='range']").on("touchend", function () {
clearTimeout(sliderTimer);
$(this).css('background-color', '')
sliderLocked = true
$(this).css('background-color', '');
sliderLocked = true;
});
$("input[type='range']").on("touchmove", function (event) {
if (sliderLocked) {
event.preventDefault();
}
else {
$(this).css('background-color', 'var(--SmartThemeQuoteColor)')
}
});
const sliders = [
{
sliderId: "#amount_gen",