mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
mobile fix revert
This commit is contained in:
@@ -45,10 +45,10 @@ pricingSlider.on('update', function (values, _) {
|
|||||||
tooltip.classList.remove('last')
|
tooltip.classList.remove('last')
|
||||||
|
|
||||||
if (document.documentElement.clientWidth < 500) {
|
if (document.documentElement.clientWidth < 500) {
|
||||||
if (value <= 1) {
|
if (value === 0) {
|
||||||
tooltip.classList.add('first')
|
tooltip.classList.add('first')
|
||||||
}
|
}
|
||||||
if (value >= priceNumbers.length - 2) {
|
if (value === priceNumbers.length - 1) {
|
||||||
tooltip.classList.add('last')
|
tooltip.classList.add('last')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user