mirror of
https://github.com/anatolykopyl/scrollable-cards.git
synced 2026-03-26 17:24:35 +00:00
багфикс
This commit is contained in:
2
main.js
2
main.js
@@ -49,7 +49,7 @@ cardholder.onscroll = function () {
|
|||||||
|
|
||||||
if (!ticking) {
|
if (!ticking) {
|
||||||
window.requestAnimationFrame(function () {
|
window.requestAnimationFrame(function () {
|
||||||
if (pos <= cardholder.clientWidth)
|
if (pos <= 1)
|
||||||
getCards()
|
getCards()
|
||||||
ticking = false
|
ticking = false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user